feat(oxc): export oxc_mangler

This commit is contained in:
Boshen 2024-07-11 21:01:32 +08:00
parent 33e96e23e4
commit 8a190eb166
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1
3 changed files with 9 additions and 1 deletions

1
Cargo.lock generated
View file

@ -1280,6 +1280,7 @@ dependencies = [
"oxc_diagnostics", "oxc_diagnostics",
"oxc_index", "oxc_index",
"oxc_isolated_declarations", "oxc_isolated_declarations",
"oxc_mangler",
"oxc_minifier", "oxc_minifier",
"oxc_parser", "oxc_parser",
"oxc_semantic", "oxc_semantic",

View file

@ -31,6 +31,7 @@ oxc_syntax = { workspace = true }
oxc_semantic = { workspace = true, optional = true } oxc_semantic = { workspace = true, optional = true }
oxc_transformer = { workspace = true, optional = true } oxc_transformer = { workspace = true, optional = true }
oxc_minifier = { workspace = true, optional = true } oxc_minifier = { workspace = true, optional = true }
oxc_mangler = { workspace = true, optional = true }
oxc_codegen = { workspace = true, optional = true } oxc_codegen = { workspace = true, optional = true }
oxc_sourcemap = { workspace = true, optional = true } oxc_sourcemap = { workspace = true, optional = true }
oxc_isolated_declarations = { workspace = true, optional = true } oxc_isolated_declarations = { workspace = true, optional = true }
@ -39,7 +40,7 @@ oxc_isolated_declarations = { workspace = true, optional = true }
serialize = ["oxc_ast/serialize", "oxc_semantic?/serialize", "oxc_span/serialize", "oxc_syntax/serialize"] serialize = ["oxc_ast/serialize", "oxc_semantic?/serialize", "oxc_span/serialize", "oxc_syntax/serialize"]
semantic = ["oxc_semantic"] semantic = ["oxc_semantic"]
transformer = ["oxc_transformer"] transformer = ["oxc_transformer"]
minifier = ["oxc_minifier"] minifier = ["oxc_mangler", "oxc_minifier"]
codegen = ["oxc_codegen"] codegen = ["oxc_codegen"]
isolated_declarations = ["oxc_isolated_declarations"] isolated_declarations = ["oxc_isolated_declarations"]

View file

@ -55,6 +55,12 @@ pub mod minifier {
pub use oxc_minifier::*; pub use oxc_minifier::*;
} }
#[cfg(feature = "minifier")]
pub mod mangler {
#[doc(inline)]
pub use oxc_mangler::*;
}
#[cfg(feature = "codegen")] #[cfg(feature = "codegen")]
pub mod codegen { pub mod codegen {
#[doc(inline)] #[doc(inline)]