Skip to content

Commit

Permalink
feat(next-swc): Update swc (vercel#33724)
Browse files Browse the repository at this point in the history
This PR applies

 - swc-project/swc#3350

which fixes lots of minifier issues.

 - swc-project/swc#3391

This fixes the regression of evaluatior.

 - swc-project/swc#3436

This fixes codegen bugs.

 - swc-project/swc#3425

This improves compression.

 - swc-project/swc#3400

This fixes some transform bugs.

 - swc-project/swc#3392
 
This implements more terser options.
  • Loading branch information
kdy1 authored and natew committed Feb 16, 2022
1 parent 8135157 commit b0a8472
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 30 deletions.
50 changes: 26 additions & 24 deletions packages/next-swc/Cargo.lock

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

4 changes: 2 additions & 2 deletions packages/next-swc/crates/core/Cargo.toml
Expand Up @@ -16,12 +16,12 @@ pathdiff = "0.2.0"
serde = "1"
serde_json = "1"
styled_components = "0.13.0"
swc = "0.117.2"
swc = "0.120.2"
swc_atoms = "0.2.7"
swc_common = { version = "0.17.0", features = ["concurrent", "sourcemap"] }
swc_css = "0.46.0"
swc_ecma_loader = { version = "0.28.0", features = ["node", "lru"] }
swc_ecmascript = { version = "0.111.2", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] }
swc_ecmascript = { version = "0.111.12", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] }
swc_node_base = "0.5.1"
swc_stylis = "0.43.0"
tracing = {version = "0.1.28", features = ["release_max_level_off"]}
Expand Down
4 changes: 2 additions & 2 deletions packages/next-swc/crates/napi/Cargo.toml
Expand Up @@ -16,12 +16,12 @@ once_cell = "1.8.0"
serde = "1"
serde_json = "1"
next-swc = { version = "0.0.0", path = "../core" }
swc = "0.117.2"
swc = "0.120.2"
swc_atoms = "0.2.7"
swc_bundler = { version = "0.104.0", features = ["concurrent"] }
swc_common = { version = "0.17.0", features = ["concurrent", "sourcemap"] }
swc_ecma_loader = { version = "0.28.0", features = ["node", "lru"] }
swc_ecmascript = { version = "0.111.2", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] }
swc_ecmascript = { version = "0.111.12", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] }
swc_node_base = "0.5.1"

[build-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions packages/next-swc/crates/wasm/Cargo.toml
Expand Up @@ -16,9 +16,9 @@ path-clean = "0.1"
serde = {version = "1", features = ["derive"]}
serde_json = "1"
next-swc = { version = "0.0.0", path = "../core" }
swc = "0.117.2"
swc = "0.120.2"
swc_common = { version = "0.17.0", features = ["concurrent", "sourcemap"] }
swc_ecmascript = { version = "0.111.2", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] }
swc_ecmascript = { version = "0.111.12", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] }
tracing = {version = "0.1.28", features = ["release_max_level_off"]}
wasm-bindgen = {version = "0.2", features = ["serde-serialize"]}
wasm-bindgen-futures = "0.4.8"
1 change: 1 addition & 0 deletions packages/next/build/swc/options.js
Expand Up @@ -76,6 +76,7 @@ export function getBaseSWCOptions({
},
},
},
sourceMaps: jest ? 'inline' : undefined,
styledComponents: nextConfig?.experimental?.styledComponents
? {
displayName: Boolean(development),
Expand Down

0 comments on commit b0a8472

Please sign in to comment.