Tweak helper compilation targets (#12615)

* refactor: simply browserslists defaults overwriting

When `hasTargets` is `false`,  `targets` is always an empty object by definition, `objectToBrowserslist({})` always return `[]` therefore we can remove `objectToBrowserslist`.

* test: apply external-helpers on preset-env test fixtures

* test: add ie 6 to force all transforms in corejs 3, debug, corejs 2 fixtures

* Add ie 6 as targets for test fixtures
This commit is contained in:
Huáng Jùnliàng
2021-01-12 13:09:45 -05:00
committed by GitHub
parent e004a91566
commit eda4130d5e
81 changed files with 2323 additions and 2397 deletions

View File

@@ -1,4 +1,4 @@
{
"presets": ["env"],
"presets": [["env", { "targets": { "browsers": "ie 6" } }]],
"plugins": ["proposal-class-properties"]
}