Skip to content

Commit

Permalink
Update swc_core
Browse files Browse the repository at this point in the history
Closes Gh-34.

Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
kdy1 committed Aug 29, 2023
1 parent af6430e commit 4764e10
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 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.10"
serde = { version = "1", optional = true }
swc_core = { version = "0.79.0", features = [
swc_core = { version = "0.82.0", features = [
"ecma_ast",
"ecma_visit",
"ecma_codegen",
Expand Down
2 changes: 1 addition & 1 deletion src/hast_util_to_swc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ mod tests {
raw: Some("\'b\'".into()),
}),
type_only: false,
asserts: None,
with: None,
span: swc_core::common::DUMMY_SP,
}))],
span: swc_core::common::DUMMY_SP,
Expand Down
2 changes: 1 addition & 1 deletion src/mdast_util_to_hast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ fn transform_image(_state: &mut State, _node: &mdast::Node, image: &mdast::Image

/// [`ImageReference`][mdast::ImageReference].
fn transform_image_reference(
state: &mut State,
state: &State,
_node: &mdast::Node,
image_reference: &mdast::ImageReference,
) -> Result {
Expand Down
4 changes: 2 additions & 2 deletions src/mdx_plugin_recma_document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ pub fn mdx_plugin_recma_document(
},
)),
type_only: false,
asserts: None,
with: None,
span: swc_core::common::DUMMY_SP,
})));
}
Expand Down Expand Up @@ -282,7 +282,7 @@ pub fn mdx_plugin_recma_document(
})],
src: source,
type_only: false,
asserts: None,
with: None,
span: swc_core::common::DUMMY_SP,
})));
}
Expand Down
2 changes: 1 addition & 1 deletion src/mdx_plugin_recma_jsx_rewrite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ fn create_import_provider(source: &str) -> ModuleItem {
})],
src: Box::new(create_str(source)),
type_only: false,
asserts: None,
with: None,
span: DUMMY_SP,
}))
}
Expand Down
2 changes: 1 addition & 1 deletion src/swc_util_build_jsx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub fn swc_util_build_jsx(
}
))),
type_only: false,
asserts: None,
with: None,
span: swc_core::common::DUMMY_SP,
})),
);
Expand Down

0 comments on commit 4764e10

Please sign in to comment.