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
I'm working on a middle-size app where we today are using webpack but are interesting in using vite instead.
I have however some issues with the load time for development builds. It currently takes about 100 ms to load our application with webpack but with vite it takes about 5 sec.
I understand that the main issue is that we don't take advantage of code-splitting so under development we are downloading 150 javascript files and that takes time. However, 50 of these files are coming from node_modules, files that will never change.
Now to my question: Is it possible to bundle all files that come from node_modes into one file, instead of bundle each package into its own file?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm working on a middle-size app where we today are using webpack but are interesting in using vite instead.
I have however some issues with the load time for development builds. It currently takes about 100 ms to load our application with webpack but with vite it takes about 5 sec.
I understand that the main issue is that we don't take advantage of code-splitting so under development we are downloading 150 javascript files and that takes time. However, 50 of these files are coming from
node_modules
, files that will never change.Now to my question: Is it possible to bundle all files that come from
node_modes
into one file, instead of bundle each package into its own file?Thanks for a great build tool!
Beta Was this translation helpful? Give feedback.
All reactions