diff --git a/Cargo.toml b/Cargo.toml index 1ed2d63..4c7abf6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ swc_core = { features = [ "ecma_codegen", "ecma_parser", "ecma_visit", -], version = "26" } +], version = "27" } [dev-dependencies] pretty_assertions = "1" diff --git a/src/swc.rs b/src/swc.rs index 95868f2..aae9e20 100644 --- a/src/swc.rs +++ b/src/swc.rs @@ -357,7 +357,7 @@ fn create_config(source: String) -> (SourceFile, Syntax, EsVersion) { FileName::Anon.into(), false, FileName::Anon.into(), - source, + source.into(), BytePos::from_usize(1), ), // Syntax. diff --git a/src/swc_util_build_jsx.rs b/src/swc_util_build_jsx.rs index bbc63fa..69f0022 100644 --- a/src/swc_util_build_jsx.rs +++ b/src/swc_util_build_jsx.rs @@ -820,7 +820,7 @@ mod tests { FileName::Anon.into(), false, FileName::Anon.into(), - value.into(), + value.to_string().into(), BytePos::from_usize(1), ), Syntax::Es(EsSyntax {