From ccc31f787840a98aea4ab9c97c790de7662980c1 Mon Sep 17 00:00:00 2001 From: Artem Yavorsky Date: Thu, 20 Apr 2017 17:18:19 +0300 Subject: [PATCH] Update `useBuiltIns : true` warning. (#300) --- experimental/babel-preset-env/src/use-built-ins-plugin.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/experimental/babel-preset-env/src/use-built-ins-plugin.js b/experimental/babel-preset-env/src/use-built-ins-plugin.js index f7fc30c972..068f36bf48 100644 --- a/experimental/babel-preset-env/src/use-built-ins-plugin.js +++ b/experimental/babel-preset-env/src/use-built-ins-plugin.js @@ -80,8 +80,8 @@ export default function({ types: t }) { ) { console.warn( ` -When setting "useBuiltIns: true", polyfills are automatically imported when needed. -Please remove the "import 'babel-polyfill'" call or use "useBuiltIns: 'entry'" instead. +When setting \`useBuiltIns: 'usage'\`, polyfills are automatically imported when needed. +Please remove the \`import 'babel-polyfill'\` call or use \`useBuiltIns: 'entry'\` instead. `, ); path.remove(); @@ -93,8 +93,8 @@ Please remove the "import 'babel-polyfill'" call or use "useBuiltIns: 'entry'" i if (isRequire(bodyPath)) { console.warn( ` -When setting "useBuiltIns: true", polyfills are automatically imported when needed. -Please remove the "require('babel-polyfill')" call or use "useBuiltIns: 'entry'" instead. +When setting \`useBuiltIns: 'usage'\`, polyfills are automatically imported when needed. +Please remove the \`require('babel-polyfill')\` call or use \`useBuiltIns: 'entry'\` instead. `, ); bodyPath.remove();