mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
feat(oxc): export oxc_mangler
This commit is contained in:
parent
33e96e23e4
commit
8a190eb166
3 changed files with 9 additions and 1 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
|
@ -1280,6 +1280,7 @@ dependencies = [
|
|||
"oxc_diagnostics",
|
||||
"oxc_index",
|
||||
"oxc_isolated_declarations",
|
||||
"oxc_mangler",
|
||||
"oxc_minifier",
|
||||
"oxc_parser",
|
||||
"oxc_semantic",
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ oxc_syntax = { workspace = true }
|
|||
oxc_semantic = { workspace = true, optional = true }
|
||||
oxc_transformer = { workspace = true, optional = true }
|
||||
oxc_minifier = { workspace = true, optional = true }
|
||||
oxc_mangler = { workspace = true, optional = true }
|
||||
oxc_codegen = { workspace = true, optional = true }
|
||||
oxc_sourcemap = { 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"]
|
||||
semantic = ["oxc_semantic"]
|
||||
transformer = ["oxc_transformer"]
|
||||
minifier = ["oxc_minifier"]
|
||||
minifier = ["oxc_mangler", "oxc_minifier"]
|
||||
codegen = ["oxc_codegen"]
|
||||
isolated_declarations = ["oxc_isolated_declarations"]
|
||||
|
||||
|
|
|
|||
|
|
@ -55,6 +55,12 @@ pub mod minifier {
|
|||
pub use oxc_minifier::*;
|
||||
}
|
||||
|
||||
#[cfg(feature = "minifier")]
|
||||
pub mod mangler {
|
||||
#[doc(inline)]
|
||||
pub use oxc_mangler::*;
|
||||
}
|
||||
|
||||
#[cfg(feature = "codegen")]
|
||||
pub mod codegen {
|
||||
#[doc(inline)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue