Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace webpack in core-js-builder #1272

Open
csm-dev-hub opened this issue Jul 17, 2023 · 2 comments
Open

Replace webpack in core-js-builder #1272

csm-dev-hub opened this issue Jul 17, 2023 · 2 comments
Labels

Comments

@csm-dev-hub
Copy link

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.

@zloirock
Copy link
Owner

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 zloirock changed the title Can we use rollup to replace the webpack in core-js-builder Replace webpack in core-js-builder Jul 24, 2023
@AlexMelw
Copy link

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/).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants