Feature: Configurable Module Bundler Selection (Webpack/Rspack/Vite) #71876
Abdel-Monaam-Aouini
started this conversation in
Ideas
Replies: 1 comment
-
NextJS had some custom webpack plugins, which they then have to support for esbuild/rollup (Vite) too. RSpack could work as it's a drop-in replacement for Webpack, but as they are working on their own rust-based bundler, I doubt they'll add support for switching webpack compatible bundlers |
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
-
Goals
Non-Goals
Background
Currently, Next.js primarily uses Webpack as its default bundler . This creates friction for teams wanting to use alternative bundlers in production, as experimental features may break or change. While there are community solutions and workarounds, having native, stable support for multiple bundlers would benefit the ecosystem.
The main alternatives currently available are:
Proposal
Implementation through a new configuration option in next.config.js:
Beta Was this translation helpful? Give feedback.
All reactions