Skip to content

Commit

Permalink
Bump swc
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Aug 11, 2022
1 parent 9e2d5d0 commit 463570c
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 52 deletions.
97 changes: 49 additions & 48 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions packages/transformers/js/core/Cargo.toml
Expand Up @@ -8,9 +8,9 @@ edition = "2018"
crate-type = ["rlib"]

[dependencies]
swc_ecmascript = { version = "0.179.0", features = ["parser", "transforms", "module", "optimization", "react", "typescript", "utils", "visit", "codegen", "utils", "preset_env"] }
swc_common = { version = "0.23.0", features = ["tty-emitter", "sourcemap"] }
swc_atoms = "0.2.13"
swc_ecmascript = { version = "0.188.0", features = ["parser", "transforms", "module", "optimization", "react", "typescript", "utils", "visit", "codegen", "utils", "preset_env"] }
swc_common = { version = "0.27.0", features = ["tty-emitter", "sourcemap"] }
swc_atoms = "0.4.0"
indoc = "1.0.3"
serde = "1.0.123"
serde_bytes = "0.11.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/transformers/js/core/src/utils.rs
Expand Up @@ -85,7 +85,7 @@ pub fn match_str(node: &ast::Expr) -> Option<(JsWord, Span)> {
Expr::Lit(Lit::Str(s)) => Some((s.value.clone(), s.span)),
// `string`
Expr::Tpl(tpl) if tpl.quasis.len() == 1 && tpl.exprs.is_empty() => {
Some((tpl.quasis[0].raw.clone(), tpl.span))
Some(((*tpl.quasis[0].raw).into(), tpl.span))
}
_ => None,
}
Expand Down

0 comments on commit 463570c

Please sign in to comment.