This plugin supports swc_core@49.0.0+ and @swc/core@1.15.0+ with stable Plugin ABI and targets the latest version available. Breaking changes in Plugin ABI by SWC require a major version bump.
Changelog is managed with @changesets/cli. When making changes to the plugin code document them briefly using pnpm changeset before committing.
Plugin Transform is run against a set of JS code samples (located at tests/fixtures) directly. Run manually with cargo test.
Pre-built wasm file with the plugin is loaded into different host runtimes (usually Next.js), and several Playwright-based end-to-end tests are run. These tests are managed manually and should be run after packing to ensure the plugin is compatible with supported host runtimes.
- Run
pnpm changeset version - Update
CHANGELOG.mdwith notable changes - Sync version from
package.json-> toCargo.toml - Run fixture tests with
cargo test - Commit as
release: v{version}and git tag withv{version}
Build a tarball cargo make bundle -> target/bundle/effector-swc-plugin-{version}.tgz
Run npm publish target/bundle/effector-swc-plugin-{version}.tgz