You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example I'm using this package, which already support ESM module, but Vite is still going to prebundle it unless you put it in the optimizeDeps.exclude explicitly.
The text was updated successfully, but these errors were encountered:
This is expected, Vite needs to pre-bundle dependencies by default to avoid bottlenecks when the browser requests too many files. It doesn't matter if it is ESM. If you would like to avoid pre-bundling a dependency, as you said, there is an option available.
For example I'm using this package, which already support ESM module, but Vite is still going to prebundle it unless you put it in the
optimizeDeps.exclude
explicitly.The text was updated successfully, but these errors were encountered: