Skip to content

Commit

Permalink
add a warning about usage preset-env and runtime together
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 17, 2019
1 parent 1d450fe commit 892c31c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ Promise.resolve(32).then(x => console.log(x));

By default, `@babel/runtime` only polyfills stable features, but like in `@babel/preset-env`, you can enable polyfilling of proposals by `proposals` option, as `corejs: { version: 3, proposals: true }`.

**Warning!** If you use `@babel/preset-env` and `@babel/runtime` together, use `corejs` option only in one place since it's duplicate functionality and will cause conflicts.

### Configurable level of aggressiveness

By default, `core-js` sets polyfills only when they are required. That means that `core-js` checks if a feature is available and works correctly or not and if it has no problems, `core-js` use native implementation.
Expand Down

0 comments on commit 892c31c

Please sign in to comment.