Skip to content

Commit

Permalink
Bump swc (#9271)
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic authored Oct 1, 2023
1 parent 889ab9d commit 49c1077
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 40 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
cache: yarn
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
profile: minimal
components: rustfmt
- uses: Swatinem/rust-cache@v1
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
node-version: ${{matrix.node}}
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
profile: minimal
components: rustfmt
- uses: Swatinem/rust-cache@v1
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
node-version: ${{matrix.node}}
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
profile: minimal
components: rustfmt
- uses: Swatinem/rust-cache@v1
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
profile: minimal
override: true
- uses: bahmutov/npm-install@v1.1.0
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
profile: minimal
override: true
- uses: bahmutov/npm-install@v1.1.0
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
profile: minimal
override: true
target: ${{ matrix.target }}
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
profile: minimal
override: true
target: ${{ matrix.target }}
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
profile: minimal
override: true
target: aarch64-apple-darwin
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
profile: minimal
override: true
- uses: bahmutov/npm-install@v1.1.0
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
profile: minimal
override: true
- uses: bahmutov/npm-install@v1.1.0
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
profile: minimal
override: true
target: ${{ matrix.target }}
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
profile: minimal
override: true
target: ${{ matrix.target }}
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
profile: minimal
override: true
target: aarch64-apple-darwin
Expand Down
51 changes: 29 additions & 22 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 packages/transformers/js/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
crate-type = ["rlib"]

[dependencies]
swc_core = { version = "0.83.4", features = [
swc_core = { version = "0.83.34", features = [
"common",
"common_ahash",
"common_sourcemap",
Expand Down
6 changes: 3 additions & 3 deletions packages/transformers/js/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ pub fn transform(config: Config) -> Result<TransformResult, std::io::Error> {
config.decorators
),
Optional::new(
typescript::strip_with_jsx(
typescript::tsx(
source_map.clone(),
typescript::Config {
Default::default(),
typescript::TsxConfig {
pragma: react_options.pragma.clone(),
pragma_frag: react_options.pragma_frag.clone(),
..Default::default()
},
Some(&comments),
global_mark,
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly
stable

0 comments on commit 49c1077

Please sign in to comment.