Zephyr Codemod
The Zephyr Codemod automatically adds Zephyr integration to your existing projects. It detects your bundler and modifies your configuration to include the appropriate Zephyr plugin.
Quick Start
Options
What It Does
The codemod scans your project for bundler configuration files and automatically:
- Detects your bundler (Webpack, Vite, Rollup, etc.)
- Adds the correct Zephyr plugin import
- Updates your configuration to include Zephyr
- Shows you what changed
Supported Bundlers
- Webpack →
zephyr-webpack-plugin - Rspack →
zephyr-rspack-plugin - Vite →
vite-plugin-zephyr - Rollup →
rollup-plugin-zephyr - Rolldown →
zephyr-rolldown-plugin - RSBuild →
zephyr-rsbuild-plugin - Modern.js →
zephyr-modernjs-plugin - RSPress →
zephyr-rspress-plugin - Parcel →
parcel-reporter-zephyr - Re.Pack →
zephyr-repack-plugin
Examples
Before:
After:
Best Practices
- Commit your changes before running the codemod
- Use
--dry-runto preview changes first - Review the diff after running to ensure correctness
- Test your build to verify everything works
- Use
--installto automatically add missing packages