Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: drop a table in favour of plugins website #118

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,24 +83,7 @@ module.exports = nextConfig;
## Compatibility
SWC Plugin support is still experimental. They do not guarantee a semver backwards compatibility between different `swc-core` versions.

So you need to select an appropriate version of the plugin to match compatible `swc_core`.

| Plugin Version | used `swc_core` | Compatibility |
|---------------------------------------------------|-----------------|---------------------------------------------------------------------------------------------------------------------------|
| `0.1.0`, `4.0.0-next.0` | `0.52.8` | `next@13.0.0` ~ `next@13.2.3` |
| `0.2.*`, `4.0.0-next.1` ~ `4.0.0-next.3` | `0.56.1` | `@swc/core@1.3.29` ~ `@swc/core@1.3.37` <br/> `next@13.2.4-canary.0` ~ `next@13.2.5-canary.5` |
| `4.0.0` | `0.75.33` | `@swc/core@1.3.49` ~ `@swc/core@1.3.57` <br/> `next@v13.3.1-canary.12` ~ `next@v13.4.3-canary.1` |
| `4.0.1` | `0.76.0` | broken due to [`lto = true`](https://github.com/swc-project/swc/issues/7470#issuecomment-1571585905) |
| `4.0.2` | `0.76.41` | `@swc/core@1.3.58` ~ `@swc/core@1.3.62` <br/> `next@v13.4.3-canary.2` ~ |
| `4.0.3` | `0.78.28` | `@swc/core@1.3.63` ~ `@swc/core@1.3.67` <br/> `next@v13.4.8 ~ next@v13.4.10-canary.0` |
| `4.0.4` | `0.79.x` | `@swc/core@1.3.68` ~ `@swc/core@1.3.80` <br/> `next@v13.4.10-canary.1` ~ |
| `4.0.5` | `0.87.x` | broken due incorrect version of `swc_common` |
| `4.0.6` | `0.87.x` | `@swc/core@1.3.81 ~ @swc/core@1.3.105` <br /> `~ next@v14.1.0` |
| `4.0.7`, `4.0.8`, `5.0.0-next.0` ~ `5.0.0-next.1` | `0.90.35` | `@swc/core@1.4.0` ~ `@swc/core@1.5.0` <br /> `next@14.1.1-canary.52` ~ `v15.0.0-canary.36` <br /> `@rspack/core@0.6.0 ~` |
| `4.0.9` | `0.96.9` | `@swc/core@1.6.x` <br /> `next@15.0.0-canary.37 ~` |

This table may become outdated. If you don't see a particular version of `@swc/core` or `next` check the compatibility by referring to the upstream's [Selecting the version](https://swc.rs/docs/plugin/selecting-swc-core) article.
This will help you select the appropriate plugin version for your project.
So you need to select an appropriate version of the plugin to match compatible `swc_core` using a https://plugins.swc.rs/.

> **Note**
> next `v13.2.4` ~ `v13.3.1` cannot execute SWC Wasm plugins, due to a [bug of next-swc](https://github.com/vercel/next.js/issues/46989#issuecomment-1486989081).
Expand All @@ -109,6 +92,7 @@ This will help you select the appropriate plugin version for your project.

- Version `0.1.0` ~ `0.*` compatible with `@lingui/core@3.*`
- Version `4.*` compatible with `@lingui/core@4.*`
- Version `5.*` compatible with `@lingui/core@5.*`

## License

Expand Down