Does Rsbuild needs to support using Webpack? #239
chenjiahan
started this conversation in
General
Replies: 2 comments
-
strongly agree |
Beta Was this translation helpful? Give feedback.
0 replies
-
The architecture after adjustment: The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The problem
In the Modern.js framework, users can choose to use Webpack or Rspack as the bundler, so Modern.js Builder needs to support both of them.
When developing the new Rsbuild, we found that it is difficult to compat Webpack, especially when we need to support new frameworks like Vue and Svelte, and support both Babel and SWC as the transformers.
Imagine these combinations, they will bring a high level of complexity and mess the code:
New design
To avoid this situation, we are considering dropping support for Webpack in Rsbuild. This means that Rsbuild users can only use one bundler —— Rspack.
The combinations can be reduced to:
And for Modern.js (PIA) users, Webpack & Babel is still available. We will merge the code that is compatible with Webpack + Babel + React as a private package for Modern.js (PIA) users, which will not be exposed to Rsbuild users.
The benefits
Beta Was this translation helpful? Give feedback.
All reactions