Move from CRACO to Webpack with SWC #34717
Labels
Enhancement
New feature or request
Frontend
This label marks the issue or pull request to reference client code
IDE Navigation
Issues/feature requests related to IDE navigation, and context switching
IDE Pod
Issues that new developers face while exploring the IDE
IDE Product
Issues related to the IDE Product
In short, moving from CRACO to Webpack with SWC can provide significant performance gains, greater flexibility, and a deeper understanding/control of the build process.
Reasons for upgrade:
SWC is a Rust-based compiler that is significantly faster than Babel. Upgrade will lead to faster build times and quicker feedback during development.
CRA abstracts much of the Webpack configuration, which can be limiting when you need more advanced configurations. Moving to a custom Webpack setup removes these limitations, using Webpack directly gives you complete control over your build setup.
With Webpack, we maintain direct control over configuration files, making it easier to debug and update as your project evolves. A well-structured Webpack setup can lead to a clearer understanding of the build process, making maintenance easier and reducing the likelihood of obscure issues.
The text was updated successfully, but these errors were encountered: