mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 04:47:03 +03:00
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:
parent
57146cf58a
commit
75bc7bfb52
5
.changeset/rare-brooms-serve.md
Normal file
5
.changeset/rare-brooms-serve.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
swc_core: patch
|
||||
---
|
||||
|
||||
fix: remove unused preset env usage
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user