{"id":24291045,"url":"https://github.com/mtolmacs/vite-plugin-wasm-pack-watcher","last_synced_at":"2026-03-12T12:09:05.420Z","repository":{"id":270744222,"uuid":"911327702","full_name":"mtolmacs/vite-plugin-wasm-pack-watcher","owner":"mtolmacs","description":"A Vite plugin which recompiles your Rust WebAssembly project whenever you modify a Rust (*.rs) file.","archived":false,"fork":false,"pushed_at":"2025-01-02T19:36:09.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-02T20:19:05.667Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtolmacs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-02T18:55:08.000Z","updated_at":"2025-01-02T19:31:22.000Z","dependencies_parsed_at":"2025-01-03T21:00:55.817Z","dependency_job_id":null,"html_url":"https://github.com/mtolmacs/vite-plugin-wasm-pack-watcher","commit_stats":null,"previous_names":["mtolmacs/vite-plugin-wasm-pack-watcher"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtolmacs%2Fvite-plugin-wasm-pack-watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtolmacs%2Fvite-plugin-wasm-pack-watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtolmacs%2Fvite-plugin-wasm-pack-watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtolmacs%2Fvite-plugin-wasm-pack-watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtolmacs","download_url":"https://codeload.github.com/mtolmacs/vite-plugin-wasm-pack-watcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234211077,"owners_count":18796823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-16T13:53:48.689Z","updated_at":"2025-09-25T15:31:57.891Z","avatar_url":"https://github.com/mtolmacs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vite-plugin-wasm-pack-watcher\n\nA Vite plugin which recompiles your Rust WebAssembly project whenever you modify\na Rust (\\*.rs) file.\n\n## Usage\n\n1. Add it to your `vite.config.(js|ts)` file and set the `build.watch` parameter\n   to listen for .rs file changes as well:\n\n```ts\nimport { defineConfig } from \"vite\";\nimport wasmPackWatchPlugin from \"vite-plugin-wasm-pack-watcher\";\n\nexport default defineConfig({\n  build: {\n    watch: {\n      include: [\"src/**/*.js\", \"src/**/*.ts\", \"src/**/*.rs\"], // Watch for *.rs files\n    },\n  },\n  plugins: [\n    wasmPackWatchPlugin({\n      /*\n            buildCommand: \"\u003cyour custom build command to run, defaults to wasm-pack build --dev\u003e\"\n      */\n    }),\n  ],\n});\n```\n\n\u003e Note: Please note that this plugin is not a replacement for [vite-plugin-wasm](https://github.com/Menci/vite-plugin-wasm)\n\u003e or similar plugins!\n\n2. If you're importing the WASM package generated by `wasm-pack` in your package.json\n   you need to reference it as a \"link\", otherwise this plugin will keep reloading the old,\n   unchanged version!\n\n```json\n{\n  \"dependencies\": {\n    \"\u003cyour wasm package name\u003e\": \"link:./pkg\"\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtolmacs%2Fvite-plugin-wasm-pack-watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtolmacs%2Fvite-plugin-wasm-pack-watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtolmacs%2Fvite-plugin-wasm-pack-watcher/lists"}