saus icon indicating copy to clipboard operation
saus copied to clipboard

Vite is optimizing dependencies used by `defineStateModule` functions

Open aleclarson opened this issue 3 years ago • 0 comments

Currently, you have to add any Node.js dependencies used by your defineStateModule functions to the optimizeDeps.exclude list in your Vite config, or else Vite will optimize them, which can lead to startup errors in some cases.

aleclarson avatar Apr 20 '22 18:04 aleclarson