Migrate from RPCE to @crxjs/vite-plugin
RPCE has moved Vite support to a new NPM package. Thanks for joining us on the
journey!
Migrate your Chrome Extension project from RPCE to @crxjs/vite-plugin
using
this codemod script:
npx @crxjs/migrate
What it does
![script running animation](https://github.com/crxjs/migrate/raw/HEAD/migrate.gif)
This script will detect your package manager (npm, pnpm, or yarn) and ask
permission to perform one or more of these actions:
- Update your Vite config file
- Install
@crxjs/vite-plugin
- Remove
rollup-plugin-chrome-extension
Options
You can specify the Vite config filename with the --file
flag:
npx @crxjs/migrate --file vite.config.js