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
vite build is kind of slow because it uses rollup-plugin-commonjs to transform node_modules cjs module to esm, which is slow and tricky.
Suggested solution
we may bundle node_modules using esbuild instead of rollup-plugin-commonjs in build(which dev already did), and it not only speeds up build speed dramatically and consistent with dev mode.
And I made an poc here #3192
Alternative
Additional context
The text was updated successfully, but these errors were encountered:
Clear and concise description of the problem
vite build is kind of slow because it uses rollup-plugin-commonjs to transform node_modules cjs module to esm, which is slow and tricky.
Suggested solution
we may bundle node_modules using esbuild instead of rollup-plugin-commonjs in build(which dev already did), and it not only speeds up build speed dramatically and consistent with dev mode.
And I made an poc here #3192
Alternative
Additional context
The text was updated successfully, but these errors were encountered: