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

Bump swc #9271

Merged
merged 6 commits into from
Oct 1, 2023
Merged
Show file tree
Hide file tree
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
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