Skip to content

Commit

Permalink
fix: build exited due to swc core version mismatch (umijs#1595)
Browse files Browse the repository at this point in the history
* fix: swc core version mismatch bug of js and rust

* build: upgrade rust toolchain to latest nightly
  • Loading branch information
PeachScript authored Apr 1, 2023
1 parent 783708c commit 007e199
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 92 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ jobs:
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
# specific manually because action not support rust-toolchain.toml
toolchain: nightly-2022-09-23
target: wasm32-wasi

- name: Install pnpm
Expand Down
77 changes: 38 additions & 39 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/swc_plugin_react_demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
swc_core = { version = "0.69.*", features = [
swc_core = { version = "0.72.4", features = [
"ecma_plugin_transform",
"ecma_visit",
"ecma_ast",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"@ant-design/icons-svg": "^4.2.1",
"@makotot/ghostui": "^2.0.0",
"@stackblitz/sdk": "^1.8.1",
"@swc/core": "^1.3.42",
"@swc/core": "1.3.44",
"@types/hast": "^2.3.4",
"@types/mdast": "^3.0.10",
"@umijs/bundler-utils": "^4.0.64",
Expand Down
Loading

0 comments on commit 007e199

Please sign in to comment.