# rspackify

> Seamlessly switch from Webpack to Rspack on the fly

Latest version **0.0.5** (published 2024-09-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install rspackify
pnpm add rspackify
yarn add rspackify
bun add rspackify
```

Provides the command `rspackify`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2024-09-04 |
| First published | 2023-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 15 |
| Unpacked size | 676.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 43 |
| Author | Cong-Cong Pan |
| Maintainers | symind |
| Keywords | rspack, webpack |

## Links

- npm: https://www.npmjs.com/package/rspackify
- Repository: https://github.com/SyMind/rspackify
- Homepage: https://github.com/SyMind/rspackify#readme
- Issues: https://github.com/SyMind/rspackify/issues
- npm.io page: https://npm.io/package/rspackify

## Dependencies (15)

- [diff](https://npm.io/package/diff.md) ^5.1.0
- [debug](https://npm.io/package/debug.md) ^4.3.4
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [opener](https://npm.io/package/opener.md) ^1.5.2
- [semver](https://npm.io/package/semver.md) ^7.6.3
- [diff2html](https://npm.io/package/diff2html.md) ^3.4.45
- [@rspack/core](https://npm.io/package/@rspack/core.md) 1.0.0
- [html-escaper](https://npm.io/package/html-escaper.md) ^3.0.3
- [fd-package-json](https://npm.io/package/fd-package-json.md) ^1.2.0
- [@rspack/dev-server](https://npm.io/package/@rspack/dev-server.md) 1.0.0
- [@rspack/dev-server-v4](https://npm.io/package/@rspack/dev-server-v4.md) npm:@rspack/dev-server@v1.0.0-alpha.1
- [rspack-manifest-plugin](https://npm.io/package/rspack-manifest-plugin.md) ^5.0.0
- [@rspack/plugin-react-refresh](https://npm.io/package/@rspack/plugin-react-refresh.md) 1.0.0-alpha.0
- [rspack-plugin-virtual-module](https://npm.io/package/rspack-plugin-virtual-module.md) ^0.1.13
- [@aaroon/workbox-rspack-plugin](https://npm.io/package/@aaroon/workbox-rspack-plugin.md) ^0.3.1

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2024-09-04
- 0.0.4 — 2024-07-05
- 0.0.3 — 2024-07-04
- 0.0.2 — 2023-11-18
- 0.0.1 — 2023-11-17

## README

# Rspackify

Experience lightning-fast builds by instantly switching from Webpack to [Rspack](https://www.rspack.dev/) ⚡️.

# Using with `npx`

To quickly use Rspackify without installing it globally, you can run:

```bash
npx rspackify npm run dev
```

Replace `npm run dev` with your project's actual development or build command.

# Installation

You can also install Rspackify globally or as part of your project.

```bash
npm install -g rspackify
```

Once installed, you can run `rspackify` from the terminal followed by your project's actual development or build command.

## 🟢 Using with [Wepback CLI](https://webpack.js.org/api/cli/)

To build a Webpack CLI project, update your `package.json` as follows:

```json
{
  "scripts": {
    "start": "rspackify webpack serve",
    "build": "rspackify webpack"
  }
}
```

## 🟢 Using with [Vue CLI](https://cli.vuejs.org/)

To build a Vue CLI project, update your `package.json`:

```json
{
  "scripts": {
    "serve": "rspackify vue-cli-service serve",
    "build": "rspackify vue-cli-service build"
  }
}
```

## 🟢 Using with [UmiJS](https://umijs.org/)

To build an UmiJS project, update your `package.json`:

```json
{
  "scripts": {
    "serve": "rspackify umi dev",
    "build": "rspackify umi build"
  }
}
```

## 🟢 Using with [Create React App](https://github.com/facebook/create-react-app)

To build a Create React App project, update your `package.json`:

```json
{
  "scripts": {
    "start": "rspackify react-scripts start",
    "build": "rspackify react-scripts build"
  }
}
```

## 🚧 Using with [Taro](https://github.com/nervjs/taro)

To build a Taro project targeting Weapp, update your `package.json`:

```json
{
  "scripts": {
    "build:weapp": "rspackify taro build --type weapp",
  }
}
```

# Roadmap

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

## Dependency Stage: Enhance Rspack Compatibility

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.

## 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

---
_Source: https://npm.io/package/rspackify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
