Skip to content

Commit

Permalink
chore: 🤖 expose oxc_cfg in oxc
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Sep 6, 2024
1 parent 1bed5ce commit 64109ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
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.

2 changes: 2 additions & 0 deletions crates/oxc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ 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 }
oxc_cfg = { workspace = true, optional = true }

[features]
full = ["codegen", "mangler", "minifier", "semantic", "transformer"]
Expand All @@ -49,6 +50,7 @@ transformer = ["oxc_transformer"]
minifier = ["oxc_mangler", "oxc_minifier"]
codegen = ["oxc_codegen"]
mangler = ["oxc_mangler"]
cfg = ["oxc_cfg"]

serialize = ["oxc_ast/serialize", "oxc_semantic?/serialize", "oxc_span/serialize", "oxc_syntax/serialize"]

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 @@ -84,3 +84,9 @@ pub mod sourcemap {
#[doc(inline)]
pub use oxc_sourcemap::*;
}

#[cfg(feature = "cfg")]
pub mod cfg {
#[doc(inline)]
pub use oxc_cfg::*;
}

0 comments on commit 64109ca

Please sign in to comment.