Skip to content

Commit

Permalink
chore: Update swc (#40292)
Browse files Browse the repository at this point in the history
This PR update swc crates to
swc-project/swc@4c078b0

This PR applies
 - patches for the performance of minifier
 - swc-project/swc#5796
   - Closes #40399
  • Loading branch information
kdy1 committed Sep 12, 2022
1 parent 804dc6b commit 53ce3bf
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 117 deletions.
185 changes: 91 additions & 94 deletions packages/next-swc/Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/next-swc/crates/core/Cargo.toml
Expand Up @@ -28,7 +28,7 @@ styled_jsx = {path="../styled_jsx"}
modularize_imports = {path="../modularize_imports"}
tracing = { version = "0.1.32", features = ["release_max_level_info"] }

swc_core = { version = "0.20.4", features = [
swc_core = { version = "0.22.4", features = [
"common_concurrent",
"ecma_ast",
"ecma_visit",
Expand All @@ -47,6 +47,6 @@ swc_core = { version = "0.20.4", features = [
] }

[dev-dependencies]
swc_core = { version = "0.20.4", features = ["testing_transform"] }
testing = "0.29.4"
swc_core = { version = "0.22.4", features = ["testing_transform"] }
testing = "0.30.0"
walkdir = "2.3.2"
8 changes: 4 additions & 4 deletions packages/next-swc/crates/emotion/Cargo.toml
Expand Up @@ -5,7 +5,7 @@ description = "AST Transforms for emotion"
license = "Apache-2.0"
name = "swc_emotion"
repository = "https://github.com/vercel/next.js.git"
version = "0.17.0"
version = "0.19.1"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -19,9 +19,9 @@ regex = "1.5"
serde = "1"
sourcemap = "6.0.1"
tracing = { version = "0.1.32", features = ["release_max_level_info"] }
swc_core = { version = "0.20.4", features = ["common_concurrent", "ecma_ast","ecma_codegen", "ecma_utils", "ecma_visit", "trace_macro"] }
swc_core = { version = "0.22.4", features = ["common", "ecma_ast","ecma_codegen", "ecma_utils", "ecma_visit", "trace_macro"] }

[dev-dependencies]
swc_core = { version = "0.20.4", features = ["testing_transform", "ecma_transforms_react"] }
testing = "0.29.4"
swc_core = { version = "0.22.4", features = ["testing_transform", "ecma_transforms_react"] }
testing = "0.30.0"
serde_json = "1"
8 changes: 4 additions & 4 deletions packages/next-swc/crates/modularize_imports/Cargo.toml
Expand Up @@ -5,7 +5,7 @@ edition = "2018"
license = "Apache-2.0"
name = "modularize_imports"
repository = "https://github.com/vercel/next.js.git"
version = "0.15.0"
version = "0.17.1"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -15,8 +15,8 @@ handlebars = "4.2.1"
once_cell = "1.13.0"
regex = "1.5"
serde = "1"
swc_core = { version = "0.20.4", features = ["cached", "ecma_ast", "ecma_visit"] }
swc_core = { version = "0.22.4", features = ["cached", "ecma_ast", "ecma_visit"] }

[dev-dependencies]
swc_core = { version = "0.20.4", features = ["testing_transform"] }
testing = "0.29.4"
swc_core = { version = "0.22.4", features = ["testing_transform"] }
testing = "0.30.0"
2 changes: 1 addition & 1 deletion packages/next-swc/crates/napi/Cargo.toml
Expand Up @@ -30,7 +30,7 @@ next-swc = {version = "0.0.0", path = "../core"}
once_cell = "1.13.0"
serde = "1"
serde_json = "1"
swc_core = { version = "0.20.4", features = [
swc_core = { version = "0.22.4", features = [
"allocator_node",
"base_concurrent", # concurrent?
"common_concurrent",
Expand Down
10 changes: 5 additions & 5 deletions packages/next-swc/crates/styled_components/Cargo.toml
Expand Up @@ -6,7 +6,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "styled_components"
repository = "https://github.com/vercel/next.js.git"
version = "0.40.0"
version = "0.42.1"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -16,17 +16,17 @@ once_cell = "1.13.0"
regex = {version = "1.5.4", features = ["std", "perf"], default-features = false}
serde = {version = "1.0.130", features = ["derive"]}
tracing = "0.1.32"
swc_core = { version = "0.20.4", features = [
"common_concurrent",
swc_core = { version = "0.22.4", features = [
"common",
"ecma_ast",
"ecma_utils",
"ecma_visit"
] }

[dev-dependencies]
serde_json = "1"
testing = "0.29.4"
swc_core = { version = "0.20.4", features = [
testing = "0.30.0"
swc_core = { version = "0.22.4", features = [
"ecma_parser",
"ecma_transforms",
"testing_transform"
Expand Down
10 changes: 5 additions & 5 deletions packages/next-swc/crates/styled_jsx/Cargo.toml
Expand Up @@ -5,16 +5,16 @@ edition = "2018"
license = "Apache-2.0"
name = "styled_jsx"
repository = "https://github.com/vercel/next.js.git"
version = "0.15.0"
version = "0.17.1"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
easy-error = "1.0.0"
tracing = "0.1.32"

swc_core = { version = "0.20.4", features = [
"common_concurrent",
swc_core = { version = "0.22.4", features = [
"common",
"css_ast",
"css_codegen",
"css_parser",
Expand All @@ -27,7 +27,7 @@ swc_core = { version = "0.20.4", features = [
] }

[dev-dependencies]
testing = "0.29.4"
swc_core = { version = "0.20.4", features = [
testing = "0.30.0"
swc_core = { version = "0.22.4", features = [
"testing_transform"
] }
2 changes: 1 addition & 1 deletion packages/next-swc/crates/wasm/Cargo.toml
Expand Up @@ -31,7 +31,7 @@ wasm-bindgen-futures = "0.4.8"
getrandom = { version = "0.2.5", optional = true, default-features = false }
js-sys = "0.3.59"

swc_core = { version = "0.20.4", features = [
swc_core = { version = "0.22.4", features = [
"common_concurrent",
"binding_macro_wasm",
"ecma_codegen",
Expand Down

0 comments on commit 53ce3bf

Please sign in to comment.