Skip to content

Commit

Permalink
Update swc_core to v0.83.28 (#6003)
Browse files Browse the repository at this point in the history
### Description


- Use better implementation for `react-remove-properties` and
`remove-conosle`.

---


I concluded `react-remove-properties` and `remove-conosle` deserve
official plugins, so I promoted them.

 - swc-project/plugins#213
 - swc-project/plugins#215

### Testing Instructions

Let's look at the CI of vercel/next.js#55780

Closes WEB-1639
  • Loading branch information
kdy1 committed Sep 29, 2023
1 parent d2138ed commit 794f33f
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 121 deletions.
101 changes: 51 additions & 50 deletions Cargo.lock

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

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,16 @@ async-recursion = "1.0.2"
# Keep consistent with preset_env_base through swc_core
browserslist-rs = { version = "0.12.2" }

mdxjs = "0.1.16"
modularize_imports = { version = "0.45.0" }
styled_components = { version = "0.72.0" }
styled_jsx = { version = "0.49.0" }
swc_core = { version = "0.83.12", features = [
mdxjs = "0.1.17"
modularize_imports = { version = "0.48.0" }
styled_components = { version = "0.75.0" }
styled_jsx = { version = "0.52.0" }
swc_core = { version = "0.83.28", features = [
"ecma_loader_lru",
"ecma_loader_parking_lot",
] }
swc_emotion = { version = "0.48.0" }
swc_relay = { version = "0.20.0" }
swc_emotion = { version = "0.51.0" }
swc_relay = { version = "0.23.0" }
testing = { version = "0.34.1" }

auto-hash-map = { path = "crates/turbo-tasks-auto-hash-map" }
Expand Down
4 changes: 2 additions & 2 deletions crates/turbopack-ecmascript/src/transform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ impl EcmascriptInputTransform {
// TODO(WEB-1213)
use_define_for_class_fields: _use_define_for_class_fields,
} => {
use swc_core::ecma::transforms::typescript::strip_with_config;
use swc_core::ecma::transforms::typescript::typescript;
let config = Default::default();
program.visit_mut_with(&mut strip_with_config(config, top_level_mark));
program.visit_mut_with(&mut typescript(config, unresolved_mark));
}
EcmascriptInputTransform::Decorators {
is_legacy,
Expand Down
Loading

0 comments on commit 794f33f

Please sign in to comment.