Skip to content

Commit

Permalink
feat: remove WASM_DIR when vite starting
Browse files Browse the repository at this point in the history
  • Loading branch information
mys1024 committed Sep 30, 2022
1 parent 9fee3f7 commit 5e5699f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export default (): Plugin => {
config: () => ({
server: { watch: { ignored: [WASM_DIR] } }
}),
buildStart: () => {
fse.removeSync(WASM_DIR)
},
resolveId: (id) => {
if (!isWatId(id))
return
Expand Down

0 comments on commit 5e5699f

Please sign in to comment.