Skip to content

Commit

Permalink
WIP Add changelog entry with upgrade guide. (#2107)
Browse files Browse the repository at this point in the history
Taking @connorshea's suggestion from rails/webpacker#2031 (comment) to warn users who were using `@babel/polyfill`
  • Loading branch information
KingTiger001 committed May 28, 2019
1 parent aedc8ed commit 19ca185
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@

Please see the diff

### Breaking changes

- [`@babel/polyfill`](https://babeljs.io/docs/en/next/babel-polyfill.html) [doesn't make it possible to provide a smooth migration path from `core-js@2` to `core-js@3`](https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md#babelpolyfill): for this reason, it was decided to deprecate `@babel/polyfill` in favor of separate inclusion of required parts of `core-js` and `regenerator-runtime`. [#2031](https://github.com/rails/webpacker/pull/2031)

In each of your `/packs/*.js` files, change this:
```js
import "@babel/polyfill";
```
to this:
```js
import "core-js/stable";
import "regenerator-runtime/runtime";
```

Don't forget install those dependencies directly!

```sh
yarn add --save core-js regenerator-runtime
```

## [4.0.2] - 2019-03-06

- Bump the version on npm
Expand Down

0 comments on commit 19ca185

Please sign in to comment.