From 7d12613a97b42419fad1c1da9dbf6491b31c84ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Wed, 6 Sep 2023 02:55:59 +0900 Subject: [PATCH 1/2] Update swc_core --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ff0e26c..a554236 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ serializable = ["serde"] [dependencies] markdown = "1.0.0-alpha.12" serde = { version = "1", optional = true } -swc_core = { version = "0.82.0", features = [ +swc_core = { version = "0.83.0", features = [ "ecma_ast", "ecma_visit", "ecma_codegen", From f94cf3dd77e434948a5b3dd9d20515da6a1ac3f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Wed, 6 Sep 2023 02:57:52 +0900 Subject: [PATCH 2/2] Fix --- src/swc.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/swc.rs b/src/swc.rs index 692c151..7b1de22 100644 --- a/src/swc.rs +++ b/src/swc.rs @@ -215,9 +215,7 @@ pub fn serialize(module: &mut Module, comments: Option<&Vec>) -> String let cm = Lrc::new(SourceMap::new(FilePathMapping::empty())); { let mut emitter = Emitter { - cfg: swc_core::ecma::codegen::Config { - ..Default::default() - }, + cfg: swc_core::ecma::codegen::Config::default(), cm: cm.clone(), comments: Some(&single_threaded_comments), wr: JsWriter::new(cm, "\n", &mut buf, None),