fix warning, readme [skip ci]

This commit is contained in:
Henry Zhu 2017-04-06 17:27:06 -04:00
parent afa3ad97d1
commit c63c2fc49b
2 changed files with 9 additions and 9 deletions

View File

@ -174,7 +174,7 @@ This option is useful for "blacklisting" a transform like `transform-regenerator
### `useBuiltIns`
`boolean`, defaults to `true`.
`boolean` | `"entry"`, defaults to `true`.
A way to apply `babel-preset-env` for polyfills (via `babel-polyfill`).

View File

@ -5,10 +5,10 @@ function isPolyfillSource(value) {
}
function warnOnInstanceMethod(state, details) {
state.opts.debug &&
console.warn(
`Adding a polyfill: An instance method may have been used: ${details}`,
);
// state.opts.debug &&
// console.warn(
// `Adding a polyfill: An instance method may have been used: ${details}`,
// );
}
function has(obj, key) {
@ -68,8 +68,8 @@ export default function({ types: t }) {
) {
console.warn(
`
When setting 'useBuiltIns: true', polyfills are automatically imported when needed.
Please remove the call or use 'useBuiltIns: "entry"' instead.
When setting "useBuiltIns: true", polyfills are automatically imported when needed.
Please remove the "import 'babel-polyfill'" call or use "useBuiltIns: 'entry'" instead.
`,
);
path.remove();
@ -90,8 +90,8 @@ to the "transform-polyfill-require" plugin
if (isRequire(bodyPath)) {
console.warn(
`
When setting 'useBuiltIns: true', polyfills are automatically imported when needed.
Please remove the call or use 'useBuiltIns: "entry"' instead.
When setting "useBuiltIns: true", polyfills are automatically imported when needed.
Please remove the "require('babel-polyfill')" call or use "useBuiltIns: 'entry'" instead.
`,
);
path.remove();