Skip to content

Commit 75bc7bf

Browse files
authoredJul 25, 2024··
fix(swc_core): Remove unused preset_env (#9333)
**Description:** While upgrading to 0.99.4, we encounter a compile error with the `ecma_preset_env` feature on `swc_core`. Seems that the preset_env_base package is not a dependency of [swc_core](https://github.com/swc-project/swc/blob/95af17ff917a6ec3d1420f6bc089585f89a8cd31/crates/swc_core/Cargo.toml#L336-L387) [Repro](https://github.com/LingyuCoder/swc-ecma-preset-env-error)
1 parent 57146cf commit 75bc7bf

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
 

‎.changeset/rare-brooms-serve.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
swc_core: patch
3+
---
4+
5+
fix: remove unused preset env usage

‎crates/swc_core/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ pub extern crate swc_ecma_quote_macros;
3232
)]
3333
pub mod plugin;
3434

35-
#[cfg(feature = "ecma_preset_env")]
36-
#[cfg_attr(docsrs, doc(cfg(feature = "preset_env")))]
37-
pub mod preset_env {
38-
pub use preset_env_base::*;
39-
}
40-
4135
#[cfg(feature = "__ecma")]
4236
#[cfg_attr(docsrs, doc(cfg(feature = "__ecma")))]
4337
pub mod ecma {

0 commit comments

Comments
 (0)
Please sign in to comment.