Skip to content

Commit

Permalink
feat(oxc): export oxc_mangler
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jul 11, 2024
1 parent 33e96e2 commit 8a190eb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion crates/oxc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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"]

Expand Down
6 changes: 6 additions & 0 deletions crates/oxc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 8a190eb

Please sign in to comment.