refactor(swc_core): Directly export swc_ecma_transforms_base (#5731)

This commit is contained in:
OJ Kwon 2022-09-03 20:19:42 -07:00 committed by GitHub
parent e97756c4b1
commit aad50dcc6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 6 deletions

4
Cargo.lock generated
View File

@ -3109,7 +3109,7 @@ dependencies = [
[[package]]
name = "swc_core"
version = "0.20.3"
version = "0.20.4"
dependencies = [
"binding_macros",
"once_cell",
@ -3131,7 +3131,7 @@ dependencies = [
"swc_ecma_minifier",
"swc_ecma_parser",
"swc_ecma_quote_macros",
"swc_ecma_transforms",
"swc_ecma_transforms_base",
"swc_ecma_transforms_module",
"swc_ecma_transforms_optimization",
"swc_ecma_transforms_proposal",

View File

@ -6,7 +6,7 @@ edition = "2021"
license = "Apache-2.0"
name = "swc_core"
repository = "https://github.com/swc-project/swc.git"
version = "0.20.3"
version = "0.20.4"
[package.metadata.docs.rs]
features = [
"common_perf",
@ -268,7 +268,7 @@ __bundler = ["swc_bundler"]
__cached = ["swc_cached"]
__common = ["swc_common"]
__css = []
__ecma = ["swc_ecma_transforms"]
__ecma = ["swc_ecma_transforms_base"]
__ecma_loader = ["__ecma", "swc_ecma_loader"]
__ecma_transforms = ["__ecma"]
__parser = ["__ecma", "swc_ecma_parser"]
@ -302,7 +302,7 @@ swc_ecma_loader = { optional = true, version = "0.39.4", path =
swc_ecma_minifier = { optional = true, version = "0.152.0", path = "../swc_ecma_minifier" }
swc_ecma_parser = { optional = true, version = "0.118.0", path = "../swc_ecma_parser" }
swc_ecma_quote_macros = { optional = true, version = "0.29.1", path = "../swc_ecma_quote_macros" }
swc_ecma_transforms = { optional = true, version = "0.191.0", path = "../swc_ecma_transforms" }
swc_ecma_transforms_base = { optional = true, version = "0.106.0", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_module = { optional = true, version = "0.146.0", path = "../swc_ecma_transforms_module" }
swc_ecma_transforms_optimization = { optional = true, version = "0.160.0", path = "../swc_ecma_transforms_optimization" }
swc_ecma_transforms_proposal = { optional = true, version = "0.137.0", path = "../swc_ecma_transforms_proposal" }

View File

@ -36,7 +36,11 @@ pub mod ecma {
doc(cfg(any(feature = "__ecma_transforms", feature = "__testing_transform")))
)]
pub mod transforms {
pub use swc_ecma_transforms::*;
pub mod base {
pub use swc_ecma_transforms_base::{
assumptions::Assumptions, feature, fixer, helpers, hygiene, pass, perf, resolver,
};
}
#[cfg(feature = "ecma_transforms_optimization")]
#[cfg_attr(docsrs, doc(cfg(feature = "transforms_optimization")))]
pub mod optimization {