Update useBuiltIns : true warning. (#300)
This commit is contained in:
parent
2b9b69dc32
commit
ccc31f7878
@ -80,8 +80,8 @@ export default function({ types: t }) {
|
|||||||
) {
|
) {
|
||||||
console.warn(
|
console.warn(
|
||||||
`
|
`
|
||||||
When setting "useBuiltIns: true", polyfills are automatically imported when needed.
|
When setting \`useBuiltIns: 'usage'\`, polyfills are automatically imported when needed.
|
||||||
Please remove the "import 'babel-polyfill'" call or use "useBuiltIns: 'entry'" instead.
|
Please remove the \`import 'babel-polyfill'\` call or use \`useBuiltIns: 'entry'\` instead.
|
||||||
`,
|
`,
|
||||||
);
|
);
|
||||||
path.remove();
|
path.remove();
|
||||||
@ -93,8 +93,8 @@ Please remove the "import 'babel-polyfill'" call or use "useBuiltIns: 'entry'" i
|
|||||||
if (isRequire(bodyPath)) {
|
if (isRequire(bodyPath)) {
|
||||||
console.warn(
|
console.warn(
|
||||||
`
|
`
|
||||||
When setting "useBuiltIns: true", polyfills are automatically imported when needed.
|
When setting \`useBuiltIns: 'usage'\`, polyfills are automatically imported when needed.
|
||||||
Please remove the "require('babel-polyfill')" call or use "useBuiltIns: 'entry'" instead.
|
Please remove the \`require('babel-polyfill')\` call or use \`useBuiltIns: 'entry'\` instead.
|
||||||
`,
|
`,
|
||||||
);
|
);
|
||||||
bodyPath.remove();
|
bodyPath.remove();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user