Skip to content

Commit 4fb90eb

Browse files
committed
feat(oxc): export isolated-declarations (#3765)
1 parent 22c56d7 commit 4fb90eb

File tree

3 files changed

+26
-17
lines changed

3 files changed

+26
-17
lines changed

Cargo.lock

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oxc/Cargo.toml

+19-17
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,27 @@ test = false
2121
doctest = false
2222

2323
[dependencies]
24-
oxc_allocator = { workspace = true }
25-
oxc_ast = { workspace = true }
26-
oxc_diagnostics = { workspace = true }
27-
oxc_index = { workspace = true }
28-
oxc_parser = { workspace = true }
29-
oxc_span = { workspace = true }
30-
oxc_syntax = { workspace = true }
31-
oxc_semantic = { workspace = true, optional = true }
32-
oxc_transformer = { workspace = true, optional = true }
33-
oxc_minifier = { workspace = true, optional = true }
34-
oxc_codegen = { workspace = true, optional = true }
35-
oxc_sourcemap = { workspace = true, optional = true }
24+
oxc_allocator = { workspace = true }
25+
oxc_ast = { workspace = true }
26+
oxc_diagnostics = { workspace = true }
27+
oxc_index = { workspace = true }
28+
oxc_parser = { workspace = true }
29+
oxc_span = { workspace = true }
30+
oxc_syntax = { workspace = true }
31+
oxc_semantic = { workspace = true, optional = true }
32+
oxc_transformer = { workspace = true, optional = true }
33+
oxc_minifier = { workspace = true, optional = true }
34+
oxc_codegen = { workspace = true, optional = true }
35+
oxc_sourcemap = { workspace = true, optional = true }
36+
oxc_isolated_declarations = { workspace = true, optional = true }
3637

3738
[features]
38-
serialize = ["oxc_ast/serialize", "oxc_semantic?/serialize", "oxc_span/serialize", "oxc_syntax/serialize"]
39-
semantic = ["oxc_semantic"]
40-
transformer = ["oxc_transformer"]
41-
minifier = ["oxc_minifier"]
42-
codegen = ["oxc_codegen"]
39+
serialize = ["oxc_ast/serialize", "oxc_semantic?/serialize", "oxc_span/serialize", "oxc_syntax/serialize"]
40+
semantic = ["oxc_semantic"]
41+
transformer = ["oxc_transformer"]
42+
minifier = ["oxc_minifier"]
43+
codegen = ["oxc_codegen"]
44+
isolated_declarations = ["oxc_isolated_declarations"]
4345

4446
sourcemap = ["oxc_sourcemap"]
4547
sourcemap_concurrent = ["oxc_sourcemap/concurrent", "sourcemap"]

crates/oxc/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ pub mod codegen {
6161
pub use oxc_codegen::*;
6262
}
6363

64+
#[cfg(feature = "isolated_declarations")]
65+
pub mod isolated_declarations {
66+
#[doc(inline)]
67+
pub use oxc_isolated_declarations::*;
68+
}
69+
6470
#[cfg(feature = "sourcemap")]
6571
pub mod sourcemap {
6672
#[doc(inline)]

0 commit comments

Comments
 (0)