From 7bc04a67918374b1b2d02ed5034330cd6dd78d57 Mon Sep 17 00:00:00 2001 From: Victor Sumner <308886+vsumner@users.noreply.github.com> Date: Wed, 6 Apr 2022 00:43:32 -0400 Subject: [PATCH] feat(plugin/api): Expose `swc_ecma_utils` (#4256) --- Cargo.lock | 1 + crates/swc_plugin/Cargo.toml | 1 + crates/swc_plugin/src/lib.rs | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 70dde41f13e..0e8aa1dfdb3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3852,6 +3852,7 @@ dependencies = [ "swc_common", "swc_ecma_ast", "swc_ecma_quote", + "swc_ecma_utils", "swc_ecma_visit", "swc_plugin_comments", "swc_plugin_macro", diff --git a/crates/swc_plugin/Cargo.toml b/crates/swc_plugin/Cargo.toml index 09dea253716..dbba27e95ea 100644 --- a/crates/swc_plugin/Cargo.toml +++ b/crates/swc_plugin/Cargo.toml @@ -28,6 +28,7 @@ swc_ecma_ast = { version = "0.75.0", path = "../swc_ecma_ast", features = [ ] } swc_ecma_quote = { version = "0.11.0", path = "../swc_ecma_quote", optional = true } swc_ecma_visit = { version = "0.61.0", path = "../swc_ecma_visit" } +swc_ecma_utils = { version = "0.79.0", path = "../swc_ecma_utils" } swc_plugin_comments = { version = "0.1.1", path = "../swc_plugin_comments", features = [ "plugin-mode", ] } diff --git a/crates/swc_plugin/src/lib.rs b/crates/swc_plugin/src/lib.rs index 60079bccbaa..a7b0c4797b3 100644 --- a/crates/swc_plugin/src/lib.rs +++ b/crates/swc_plugin/src/lib.rs @@ -18,6 +18,10 @@ pub mod util { pub use swc_ecma_quote::*; } +pub mod utils { + pub use swc_ecma_utils::*; +} + pub mod ast { pub use swc_atoms::*; pub use swc_ecma_ast::*;