0.0.2 • Published 6 months ago

rspackify v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Rspackify

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!

Usage

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"
  }
}

Roadmap

Here's our future directions and plans for the development of this project:

Initial Focus: Availability Across Different Framework Development Modes

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.

Ultimate Goal: Production Mode Build Availability

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.

License

MIT