Skip to content

Commit

Permalink
fix: plugin behavior with vite build --watch
Browse files Browse the repository at this point in the history
- add watched files with rollup's PluginContext.addWatchFile()
- support cleaning up state (result + emitter variables)
when closing bundle so other builds can happen (build --watch)
- bump vite dep to 2.7.0 to get access to config.build.watch - just
for types, but hey 2.7.0 is old now - bumped minor to 0.4.0 because of
it
  • Loading branch information
muryoh committed Nov 4, 2022
1 parent 131f247 commit 14c442d
Show file tree
Hide file tree
Showing 3 changed files with 214 additions and 62 deletions.
247 changes: 196 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-bundled-entry",
"version": "0.3.1",
"version": "0.4.0",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -35,12 +35,12 @@
"@types/node": "^16.11.11",
"tsup": "^5.7.1",
"typescript": "^4.4.4",
"vite": "^2.0.2"
"vite": "~2.7.0"
},
"dependencies": {
"esbuild": "^0.14.10"
},
"peerDependencies": {
"vite": "^2.0.2"
"vite": "~2.7.0"
}
}
Loading

0 comments on commit 14c442d

Please sign in to comment.