Skip to content

Commit

Permalink
Add virtual module to rollup excludes
Browse files Browse the repository at this point in the history
  • Loading branch information
StarLederer committed Apr 4, 2022
1 parent 2d50884 commit 39d27f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ function VitePluginFs(userOptiuons: UserOptions = {}): Plugin {
}

return {
build: {
rollupOptions: {
external: 'virtual:fs',
},
},
optimizeDeps: {
exclude: [virtualModuleId],
},
Expand Down

0 comments on commit 39d27f2

Please sign in to comment.