headfire94 / rspackify

Seamlessly switch from Webpack to Rspack on the fly ⚡️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License

MIT

About

Seamlessly switch from Webpack to Rspack on the fly ⚡️

License:MIT License


Languages

Language:JavaScript 100.0%