Skip to content

Allow the swc plugin to work with recent next.js versions #10352

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
21 changes: 8 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ jobs:
nodeVersion: 18
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
with:
toolchain: 1.65.0
target: wasm32-wasi
toolchain: 1.87.0
target: wasm32-wasip1
override: true
- name: Build SWC plugin
working-directory: ./packages/presets/swc-plugin
Expand Down Expand Up @@ -175,15 +175,10 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
with:
toolchain: 1.65.0
target: wasm32-wasi
toolchain: 1.87.0
target: wasm32-wasip1
override: true
- uses: marcopolo/cargo@a527bf4d534717ff4424a84446c5d710f8833139
with:
working-directory: ./packages/presets/swc-plugin
command: build
args: --target wasm32-wasi
- uses: marcopolo/cargo@a527bf4d534717ff4424a84446c5d710f8833139
with:
working-directory: ./packages/presets/swc-plugin
command: test
- run: cargo build --target wasm32-wasip1
working-directory: ./packages/presets/swc-plugin
- run: cargo test
working-directory: ./packages/presets/swc-plugin
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
with:
toolchain: 1.65.0
target: wasm32-wasi
toolchain: 1.87.0
target: wasm32-wasip1
override: true
- name: Build SWC plugin
working-directory: ./packages/presets/swc-plugin
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ website/src/components/live-demo/LiveDemo.tsx
# This should be added bc our rust test setup for the SWC plugin does a string diff, and it fails
# bc it compares imports with double quotes against the formatted perttier single quotes
packages/presets/swc-plugin/tests/fixtures
packages/presets/swc-plugin/tests/__swc_snapshots__

# Ignore intentional error files
packages/graphql-codegen-cli/tests/test-files/schema-dir/error-schema.graphql
Expand Down
Loading
Loading