Skip to content

Commit 80f3b55

Browse files
jakeNiemiecgauravtiwari
authored andcommitted
WIP Add changelog entry with upgrade guide. (#2107)
Taking @connorshea's suggestion from #2031 (comment) to warn users who were using `@babel/polyfill`
1 parent 9bb8abb commit 80f3b55

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,26 @@
88

99
Please see the diff
1010

11+
### Breaking changes
12+
13+
- [`@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)
14+
15+
In each of your `/packs/*.js` files, change this:
16+
```js
17+
import "@babel/polyfill";
18+
```
19+
to this:
20+
```js
21+
import "core-js/stable";
22+
import "regenerator-runtime/runtime";
23+
```
24+
25+
Don't forget install those dependencies directly!
26+
27+
```sh
28+
yarn add --save core-js regenerator-runtime
29+
```
30+
1131
## [4.0.2] - 2019-03-06
1232

1333
- Bump the version on npm

0 commit comments

Comments
 (0)