diff --git a/Cargo.toml b/Cargo.toml index 5462ac3..3b173b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ criterion = "0.5" env_logger = "0.11" pretty_assertions = { workspace = true } serde_json = { version = "1" } -swc_core = { version = "22", features = [ +swc_core = { version = "46", features = [ "common", "ecma_ast", "ecma_parser", diff --git a/tests/test_utils/swc.rs b/tests/test_utils/swc.rs index a446d95..536bc25 100644 --- a/tests/test_utils/swc.rs +++ b/tests/test_utils/swc.rs @@ -269,7 +269,7 @@ fn create_config(source: String) -> (SourceFile, Syntax, EsVersion) { FileName::Anon.into(), false, FileName::Anon.into(), - source, + source.into(), BytePos::from_usize(1), ), // Syntax.