Skip to content

Commit

Permalink
build: Update swc_core to v0.106.3 (#70687)
Browse files Browse the repository at this point in the history
### What?

Update SWC crates to
swc-project/swc@d30b5ed

### Why?

To keep in sync with the main SWC repository
  • Loading branch information
kdy1 authored Oct 11, 2024
1 parent 489bdd4 commit 3902b4b
Show file tree
Hide file tree
Showing 8 changed files with 259 additions and 296 deletions.
505 changes: 235 additions & 270 deletions Cargo.lock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,21 @@ turbopack-trace-utils = { path = "turbopack/crates/turbopack-trace-utils" }
turbopack-wasm = { path = "turbopack/crates/turbopack-wasm" }

# SWC crates
swc_core = { version = "0.103.1", features = [
swc_core = { version = "0.106.3", features = [
"ecma_loader_lru",
"ecma_loader_parking_lot",
] }
testing = { version = "0.39.0" }
testing = { version = "0.42.0" }

# Keep consistent with preset_env_base through swc_core
browserslist-rs = { version = "0.16.0" }
miette = { version = "5.10.0", features = ["fancy"] }
mdxjs = "0.2.9"
modularize_imports = { version = "0.68.25" }
styled_components = { version = "0.96.23" }
styled_jsx = { version = "0.73.34" }
swc_emotion = { version = "0.72.22" }
swc_relay = { version = "0.44.25" }
mdxjs = "0.2.10"
modularize_imports = { version = "0.68.26" }
styled_components = { version = "0.96.24" }
styled_jsx = { version = "0.73.35" }
swc_emotion = { version = "0.72.23" }
swc_relay = { version = "0.44.26" }

# General Deps

Expand Down
4 changes: 2 additions & 2 deletions crates/next-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ lazy_static = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
rustc-hash = { workspace = true }
react_remove_properties = "0.24.20"
remove_console = "0.25.20"
react_remove_properties = "0.24.21"
remove_console = "0.25.21"

auto-hash-map = { workspace = true }

Expand Down
6 changes: 3 additions & 3 deletions crates/next-custom-transforms/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ swc_emotion = { workspace = true }
swc_relay = { workspace = true }
turbopack-ecmascript-plugins = { workspace = true, optional = true }

react_remove_properties = "0.24.20"
remove_console = "0.25.20"
preset_env_base = "0.5.1"
react_remove_properties = "0.24.21"
remove_console = "0.25.21"
preset_env_base = "0.6.0"

[dev-dependencies]
swc_core = { workspace = true, features = ["testing_transform"]}
Expand Down
6 changes: 2 additions & 4 deletions turbopack/crates/turbopack-ecmascript/src/transform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,8 @@ impl EcmascriptInputTransform {
EcmascriptInputTransform::CommonJs => {
// Explicit type annotation to ensure that we don't duplicate transforms in the
// final binary
program.visit_mut_with(&mut swc_core::ecma::transforms::module::common_js::<
&dyn Comments,
>(
program.visit_mut_with(&mut swc_core::ecma::transforms::module::common_js(
swc_core::ecma::transforms::module::path::Resolver::Default,
unresolved_mark,
swc_core::ecma::transforms::module::util::Config {
allow_top_level_this: true,
Expand All @@ -232,7 +231,6 @@ impl EcmascriptInputTransform {
..Default::default()
},
swc_core::ecma::transforms::base::feature::FeatureFlag::all(),
Some(&comments),
));
}
EcmascriptInputTransform::PresetEnv(env) => {
Expand Down

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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 3902b4b

Please # to comment.