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

Upgrade swc_core to v13.3.0 #144

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jeremywiebe
Copy link

In this PR we upgrade the swc_core crate to v13.3.0. This makes the plugin compatible with v1.2.3 and 1.2.4 of Rspack which will allow projects using this plugin to upgrade.

A few things of note:

  • It incorporates changes found in Use new name for wasm32-wasi: wasm32-wasip1 #143 because those are necessary for this upgrade
  • There were a few API changes necessary to make the plugin code compatible with swc_core. The major changes are documented at the top of this page: https://swc.rs/docs/plugin/ecmascript/getting-started
  • I've taken the liberty of converting the Github Actions to use actions-rust-lang/setup-rust-toolchain@v1 which is a newer, more advanced version of the action this project was already using. It will respect the values in rust-toolchain.toml reducing how many times the toolchain needs to be specified
  • The LinguiMacroFolder needed to be wrapped in fold_pass() calls in tests to be compatible with the new parameter list that test_inline! expects.

Once these changes were complete, all tests passed and I was able to install this plugin in a real project that uses Rspack and build it successfully.

@jeremywiebe jeremywiebe changed the title Jer/swc core 13.3.0 Upgrade swc_core to v13.3.0 Feb 22, 2025
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.

1 participant