Re:Why we switched from Webpack to Vite
by desireco42 on Wednesday April 28, 2021 @04:31PM
(#26973810)
You still need webpack for production build :). So all is good.
[ Parent
| on HN ]
Re:Why we switched from Webpack to Vite
by darekkay on Wednesday April 28, 2021 @05:32PM
(#26974488)
Vite uses Rollup for production builds, which is still much faster than webpack.
Re:Why we switched from Webpack to Vite
by simlevesque on Wednesday April 28, 2021 @06:33PM
(#26975098)
Why can't you use esbuild for production builds ?
Re:Why we switched from Webpack to Vite
by RobertKerans on Wednesday April 28, 2021 @07:14PM
(#26975432)
Tree shaking isn't sorted, so can't currently get an bundle optimised to same extent as you do with Webpack/Rollup et al. It'll come, but not quite there yet.
Re:Why we switched from Webpack to Vite
by eliseumds on Thursday April 29, 2021 @10:08AM
(#26981349)
Correct.
Re:Why we switched from Webpack to Vite
by desireco42 on Wednesday April 28, 2021 @11:53PM
(#26977261)
Yes you can, my bad/ But some people have webpack configs, so the easiest for them is to keep those and can use Vite for development. Like if you are not doing new project.
Re:Why we switched from Webpack to Vite
by IggleSniggle on Wednesday April 28, 2021 @08:08PM
(#26975810)
I use esbuild for prod...?