Adam Ramberg fcb77de901 [preset-env] Include / exclude module plugins properly (#10218)
* Include / exclude module plugins properly

* Use filter-items to excl / incl module plugins

* Move transform selection to getModulesPluginNames

* Remove unnecessary spread operator

Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>

* Adjust tests to changes in #10218
2019-09-05 15:58:29 +02:00

25 lines
649 B
Plaintext

@babel/preset-env: `DEBUG` option
Using targets:
{
"chrome": "71"
}
Using modules transform: auto
Using plugins:
syntax-async-generators { "chrome":"71" }
syntax-object-rest-spread { "chrome":"71" }
syntax-json-strings { "chrome":"71" }
syntax-optional-catch-binding { "chrome":"71" }
transform-modules-commonjs { "chrome":"71" }
proposal-dynamic-import { "chrome":"71" }
Using polyfills with `usage` option:
[<CWD>/src/in.js] Added following core-js polyfill:
web.dom.iterable { "chrome":"71" }
[<CWD>/src/in2.js] Added following core-js polyfill:
web.dom.iterable { "chrome":"71" }
Successfully compiled 2 files with Babel.