Skip to content

Commit

Permalink
Bump swc
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed May 6, 2022
1 parent b1bc4dc commit 7c92208
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 34 deletions.
64 changes: 32 additions & 32 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion packages/transformers/js/core/Cargo.toml
Expand Up @@ -8,7 +8,7 @@ edition = "2018"
crate-type = ["rlib"]

[dependencies]
swc_ecmascript = { version = "0.151.0", features = ["parser", "transforms", "module", "optimization", "react", "typescript", "utils", "visit", "codegen", "utils", "preset_env"] }
swc_ecmascript = { version = "0.153.0", features = ["parser", "transforms", "module", "optimization", "react", "typescript", "utils", "visit", "codegen", "utils", "preset_env"] }
swc_common = { version = "0.17.25", features = ["tty-emitter", "sourcemap"] }
swc_atoms = "0.2.11"
indoc = "1.0.3"
Expand Down
3 changes: 2 additions & 1 deletion packages/transformers/js/core/src/lib.rs
Expand Up @@ -236,7 +236,8 @@ pub fn transform(config: Config) -> Result<TransformResult, std::io::Error> {
decorators::decorators(decorators::Config {
legacy: true,
// Always disabled for now, SWC's implementation doesn't match TSC.
emit_metadata: false
emit_metadata: false,
use_define_for_class_fields: true
}),
config.decorators
),
Expand Down

0 comments on commit 7c92208

Please sign in to comment.