Update useBuiltIns : true warning. (#300)

This commit is contained in:
Artem Yavorsky 2017-04-20 17:18:19 +03:00 committed by Brian Ng
parent 2b9b69dc32
commit ccc31f7878

View File

@ -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();