Add usage with import ‘babel-polyfill’ fixture.

This commit is contained in:
Artem Yavorsky 2017-05-18 16:20:17 +03:00
parent e1cb75989f
commit 84c38182ad
4 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1 @@
import 'babel-polyfill';

View File

@ -0,0 +1,11 @@
{
"presets": [
["../../lib", {
"debug": true,
"targets": {
"chrome": 55
},
"useBuiltIns": "usage"
}]
]
}

View File

@ -0,0 +1,2 @@
When setting `useBuiltIns: 'usage'`, polyfills are automatically imported when needed.
Please remove the `import 'babel-polyfill'` call or use `useBuiltIns: 'entry'` instead.

View File

@ -0,0 +1,19 @@
babel-preset-env: `DEBUG` option
Using targets:
{
"chrome": "55"
}
Using modules transform: commonjs
Using plugins:
syntax-trailing-function-commas { "chrome":"55" }
Using polyfills with `usage` option:
When setting `useBuiltIns: 'usage'`, polyfills are automatically imported when needed.
Please remove the `import 'babel-polyfill'` call or use `useBuiltIns: 'entry'` instead.
[index.js] Based on your code and targets, none were added.
src/in.js -> lib/in.js