Skip to content

feat: document swc wasm plugin compatibility with Rspack - #360

Merged
dgaponov merged 1 commit into
mainfrom
feat/document-swc-plugin-compat
Sep 14, 2026
Merged

dgaponov merged 1 commit into
mainfrom
feat/document-swc-plugin-compat

Conversation

@dgaponov

Copy link
Copy Markdown
Contributor

What

Adds a note to the swc config option in the README: custom wasm plugins passed through jsc.experimental.plugins must match the swc_core ABI of the bundler running the build, which for bundler: 'rspack' is the swc_core embedded in Rspack rather than the @swc/core version.

Why

This came up while upgrading Rspack to 2.2.1 (#359). Rspack 2.2.x embeds swc_core 77, which forces @swc/core to 1.16.01.16.1 and @swc/plugin-transform-imports to exactly 13.0.0. A mismatched wasm plugin does not warn — it fails to load at build time, and the coupling was not documented anywhere.

It also carries a feat commit so the Rspack 2.2.1 upgrade in #359 gets released: that PR was renamed to feat only after it had already been squashed, so it landed on main as chore(deps): ... and release-please will not cut a release for it on its own.

Reviewer notes

Docs only — no code, no dependency changes.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@dgaponov
dgaponov merged commit e5fe363 into main Sep 14, 2026
3 checks passed
@dgaponov
dgaponov deleted the feat/document-swc-plugin-compat branch September 14, 2026 15:00
@gravity-ui gravity-ui Bot mentioned this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants