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](95af17ff91/crates/swc_core/Cargo.toml (L336-L387))

[Repro](https://github.com/LingyuCoder/swc-ecma-preset-env-error)
This commit is contained in:
harpsealjs 2024-07-25 11:40:32 +08:00 committed by GitHub
parent 57146cf58a
commit 75bc7bfb52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 6 deletions

View File

@ -0,0 +1,5 @@
---
swc_core: patch
---
fix: remove unused preset env usage

View File

@ -32,12 +32,6 @@ pub extern crate swc_ecma_quote_macros;
)]
pub mod plugin;
#[cfg(feature = "ecma_preset_env")]
#[cfg_attr(docsrs, doc(cfg(feature = "preset_env")))]
pub mod preset_env {
pub use preset_env_base::*;
}
#[cfg(feature = "__ecma")]
#[cfg_attr(docsrs, doc(cfg(feature = "__ecma")))]
pub mod ecma {