Skip to content

Commit

Permalink
Update swc_core
Browse files Browse the repository at this point in the history
Closes GH-35.
  • Loading branch information
kdy1 authored Sep 9, 2023
1 parent 29da16d commit 77323e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 1 addition & 3 deletions src/swc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,7 @@ pub fn serialize(module: &mut Module, comments: Option<&Vec<Comment>>) -> 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),
Expand Down

0 comments on commit 77323e5

Please sign in to comment.