Unverified Commit 5aaa6ff6 authored by Donny/강동윤's avatar Donny/강동윤 Committed by GitHub

fix: Disable `tracing/release_max_level_off` for wasm, too (#49639)

### What?

Along with https://github.com/swc-project/plugins/pull/182, this PR will
allow using trace-level logging for debugging turboapck.

### Why?

Requested by @sokra 

x-ref: https://vercel.slack.com/archives/C03EWR7LGEN/p1683738076476839

### How?

Closes WEB-1035
parent ca32decd
...@@ -1537,7 +1537,7 @@ jobs: ...@@ -1537,7 +1537,7 @@ jobs:
run: node scripts/normalize-version-bump.js run: node scripts/normalize-version-bump.js
- name: Build - name: Build
run: turbo run build-wasm -- --target ${{ matrix.target }} run: turbo run build-wasm -- --target ${{ matrix.target }} --features tracing/release_max_level_info
- name: Add target to folder name - name: Add target to folder name
run: '[[ -d "packages/next-swc/crates/wasm/pkg" ]] && mv packages/next-swc/crates/wasm/pkg packages/next-swc/crates/wasm/pkg-${{ matrix.target }} || ls packages/next-swc/crates/wasm' run: '[[ -d "packages/next-swc/crates/wasm/pkg" ]] && mv packages/next-swc/crates/wasm/pkg packages/next-swc/crates/wasm/pkg-${{ matrix.target }} || ls packages/next-swc/crates/wasm'
...@@ -1602,7 +1602,7 @@ jobs: ...@@ -1602,7 +1602,7 @@ jobs:
- name: Build - name: Build
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
run: turbo run build-wasm --cache-dir=".turbo" -- --target nodejs --dev run: turbo run build-wasm --cache-dir=".turbo" -- --target nodejs --dev --features tracing/release_max_level_info
- name: Add target to folder name - name: Add target to folder name
if: ${{needs.build.outputs.docsChange == 'nope'}} if: ${{needs.build.outputs.docsChange == 'nope'}}
......
...@@ -22,10 +22,7 @@ parking_lot_core = "=0.8.0" ...@@ -22,10 +22,7 @@ parking_lot_core = "=0.8.0"
path-clean = "0.1" path-clean = "0.1"
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
serde_json = "1" serde_json = "1"
tracing = { version = "0.1.37", features = [ tracing = { version = "0.1.37" }
"release_max_level_off",
"max_level_off",
] }
wasm-bindgen = { version = "0.2", features = ["enable-interning"] } wasm-bindgen = { version = "0.2", features = ["enable-interning"] }
wasm-bindgen-futures = "0.4.8" wasm-bindgen-futures = "0.4.8"
getrandom = { version = "0.2.5", optional = true, default-features = false } getrandom = { version = "0.2.5", optional = true, default-features = false }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment