Seamlessly switch from Webpack to Rspack on the fly ⚡️.
Perfect for use with various frameworks such as Taro, Next.js, and more that deeply integrate Webpack, now allowing you to switch to Rspack with ease.
🚨 Please note: very early work in progress. Almost nothing works yet. Contributions welcome!
Rspackify is a command-line utility that can be installed globally or as part of a Node.js project.
npm install -g rspackify
Once installed, you can run rspackify from the terminal followed by your regular commands for build or development. This will replace Webpack invocations with Rspack behind the scenes during runtime.
🚧 Using with Taro
For instance, to build a Taro project targeting weapp, you update your package.json as follows:
{
"scripts": {
"build:weapp": "rspackify taro build --type weapp",
}
}
🚧 Using with Create React App
For instance, to build a Create React App project, you update your package.json as follows:
{
"scripts": {
"start": "rspackify react-scripts start",
"build": "rspackify react-scripts build"
}
}
Here's our future directions and plans for the development of this project:
Our first essential step for this project is to identify and address the unsupported functionalities in rspack. This pre-initial stage will focus extensively on gaining in-depth insights into rspack, recognizing its limitations, and exploring viable solutions for overcoming these. Our commitment at this juncture is to expedite the detection and resolution of any shortcomings in rspack to prepare a solid foundation for the seamless progression of this project.
The initial and primary goal is to ensure workability across different frameworks in developer mode. The emphasis here is on improving the developer experience without compromising on essential functionality. In development mode, we expect a higher degree of tolerance for differences from the original webpack configuration and inconsistencies in final output, as long as the project runs correctly.
As the project progresses, our ultimate goal is to guarantee that the package will work under a production environment. We strive to address all operational issues to ensure seamless integration during production builds. This includes addressing scalability and performance issues, minimizing the final output sizes, and optimizing load times. We understand that a smooth, reliable production mode is crucial for any application, and we're committed to making that a reality.
MIT