Using webpack for bundling the app code has advantages for both development and production. Loading a single script file in the developer client is significantly faster than loading many source files separately, the bundle can be rebuilt incrementally on file change and unused code (particularly relevant for node dependencies) can be excluded from the bundle by tree shaking.
Using webpack for bundling the app code has advantages for both development and production. Loading a single script file in the developer client is significantly faster than loading many source files separately, the bundle can be rebuilt incrementally on file change and unused code (particularly relevant for node dependencies) can be excluded from the bundle by tree shaking.