core-js icon indicating copy to clipboard operation
core-js copied to clipboard

Replace `webpack` in `core-js-builder`

Open csm-dev-hub opened this issue 2 years ago • 2 comments

core-js-builder uses webpack as its dependency. Because webpack has many dependencies, introducing core-js-builder in a project will indirectly introduce many dependencies of webpack, which increases project management costs.

Can we use rollup to replace the webpack in core-js-builder? Thank you so much.

csm-dev-hub avatar Jul 17 '23 08:07 csm-dev-hub

Currently, core-js-builder uses old Webpack for legacy and compatibility reasons - in core-js@3 we can't replace it with something else.

In @4 version, I wanted to replace Webpack with esbuild. It could be helpful in some other cases like service for good performance reasons. However, some related esbuild issues like this are still not fixed.

Some time ago I considered rollup and rejected this option, I already don't remember the specific reason.

zloirock avatar Jul 17 '23 10:07 zloirock

You might want to wait a bit and consider using Rolldown, a Rust port of Rollup developed by Evan You, the rspack team, and the Rollup author (https://www.javascriptjam.com/november-22-2023/).

slavbar avatar Feb 15 '24 11:02 slavbar