Selecting the version
Currently, the Wasm plugins are not backwards compatible.
So you need to select an appropriate version of swc_core
for your plugin.
We provide a simple webapp to help you select the version of swc_core
.
See: https://plugins.swc.rs
You can select the framework and the version of framework you are using, and the Wasm plugins compatible with it will be shown.
OLD Documentation for the version of swc_core
Please use the webapp instead.
The page documents the version of swc_core
you can use for each runtime.
Note for next.js
swc_core
If you use a version in a range of the title, the Wasm plugin will work for the runtimes written in the body.
v0.98.x
~
Changes
Span.ctxt
is removed to reduce the size ofSpan
.ctxt: SyntaxContext
is added to various AST nodes.IdentName
is used instead ofIdent
in some places likeMemberProp
, because those fields does not needctxt
oroptional
.
Upgrade guide
- The update PR for the official plugins: plugins#334
Versions
@swc/[email protected]
[email protected]
(reverted in[email protected]
)[email protected]
~
v0.95.x
~ v0.96.x
We optimized some AST type definitions.
v0.94.x
Do not use this version if you are building a plugin for SWC.
v0.91.x
~ v0.93.x
We added support for abstract auto-accessors.
@swc/[email protected]
[email protected]
~v15.0.0-canary.36
v0.90.x
We refactored AST to make it less error-prone.
@swc/[email protected]
[email protected]
~[email protected]
@rspack/[email protected]
~
v0.88.x
~ v0.89.x
Support for import phase proposal (stage 3) was added.
@swc/[email protected]
~@swc/[email protected]
@rspack/[email protected]
~@rspack/[email protected]
v0.82.x
~ v0.87.x
We modified AST definitions because of with
of Import Attributes proposal .
@swc/[email protected]
~@swc/[email protected]
- ~
[email protected]
Note: You may need to specify the version of swc_common
, too, like
[dependencies]
swc_common = "=0.33.15"
v0.79.x
~ v0.81.x
We modified AST definitions because of await
of Explicit Resource Management proposal .
@swc/[email protected]
~@swc/[email protected]
[email protected]
~
v0.78.x
We modified AST definitions because some of the previous definitions were misdesigned.
@swc/[email protected]
~@swc/[email protected]
[email protected]
~[email protected]
v0.76.x
~ v0.77.x
We modified AST definitions because of Explicit Resource Management proposal , which is stage 3.
@swc/[email protected]
~@swc/[email protected]
[email protected]
~[email protected]
v0.75.x
We enabled strict mode of rkyv
and updated wasmer
to v3
.
@swc/[email protected]
~@swc/[email protected]
v13.3.1-canary.12
~[email protected]
v0.72.4
~ v0.74.6
We updated rkyv
to v0.7.40
and the bug is now fixed.
@swc/[email protected]
~@swc/[email protected]
v0.69.x
~ v0.72.3
Due to a bug of [email protected]
, you are recommended to use nightly-2022-09-23
as the compiler if you are building a plugin for these targets.
@swc/[email protected]
~@swc/[email protected]
[email protected]
v0.66.x
~ v0.68.x
@swc/[email protected]
v0.61.x
~ v0.64.x
@swc/[email protected]
v0.54.x
~ v0.59.x
-
@swc/[email protected]
~@swc/[email protected]