We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d805706 commit 659ce0eCopy full SHA for 659ce0e
crates/swc_ecma_preset_env/src/lib.rs
@@ -58,7 +58,7 @@ where
58
let f = transform_data::Feature::$feature;
59
!exclude.contains(&f)
60
&& (c.force_all_transforms
61
- || (is_any_target
+ || (!is_any_target
62
|| include.contains(&f)
63
|| f.should_enable(&targets, c.bugfixes, $default)))
64
}};
@@ -369,6 +369,9 @@ impl Polyfills {
369
+ VisitMutWith<corejs2::Entry>
370
+ VisitMutWith<corejs3::Entry>,
371
{
372
+ if self.targets.is_any_target() {
373
+ return Default::default();
374
+ }
375
let required = match self.mode {
376
None => Default::default(),
377
Some(Mode::Usage) => {
0 commit comments