Skip to content

Commit

Permalink
Upgraded to core js v3
Browse files Browse the repository at this point in the history
  • Loading branch information
jennasalau committed Jun 26, 2019
1 parent 2d7eca3 commit 9d9413e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 3.0.0

- Upgraded to core js 3

🚨 @babel/polyfill has been deprecated in favor of directly including core-js/stable (to polyfill ECMAScript features)
and regenerator-runtime/runtime (needed to use transpiled generator functions). These should be installed at the project level.

```js
import "core-js/stable";
import "regenerator-runtime/runtime";
```

## 2.0.6

- Fixed issue with 'Duplicate declaration' babel error with nested async functions when running tests
Expand Down
6 changes: 3 additions & 3 deletions packages/babel-preset-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ module.exports = function() {
{
// Lets not transform modules to commons js
modules: false,
// replaces the statement import "@babel/polyfill" or require("@babel/polyfill")
// with individual requires for @babel/polyfill based on browser environment.
// replaces the statement import "core-js" or require("core-js")
// with individual requires for core-js based on browser environment.
useBuiltIns: 'usage',
// Set the corejs version we are using to avoid warnings in console
corejs: 2,
corejs: 3,
},
],
].filter(Boolean),
Expand Down

0 comments on commit 9d9413e

Please sign in to comment.