Zephyr Bundler Configuration Codemod

1.0.2 · active · verified Tue Apr 21

The `with-zephyr` package provides a codemod utility designed to automatically inject the `withZephyr` plugin into various JavaScript bundler configurations. This tool is essential for projects integrating with the Zephyr Cloud platform, facilitating features like Module Federation, Over-The-Air (OTA) updates, and streamlined deployments for micro-frontends. It supports a wide array of bundlers, including Webpack, Vite, Rollup, Rspack, and others within ecosystems like Astro and Modern. Currently at version 1.0.2, the package maintains an active development pace with frequent patch releases, often addressing security vulnerabilities and improving compatibility. Its primary differentiator is its role as an automated transformation tool, simplifying the integration of Zephyr-specific plugins into complex build setups without manual configuration edits. This package is distinct from the Zephyr Real-Time Operating System (RTOS).

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to invoke the `with-zephyr` codemod via the command line to initialize Zephyr plugin integration.

npx with-zephyr --help
# Example: Run the codemod to automatically configure a project
npx with-zephyr init
# The 'init' command would typically detect your bundler configuration
# (e.g., webpack.config.js, vite.config.ts) and apply the necessary
# modifications to include the Zephyr plugin for Module Federation and deployment.
# Always review changes made by codemods before committing.

view raw JSON →