-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP Add changelog entry with upgrade guide. (#2107)
Taking @connorshea's suggestion from #2031 (comment) to warn users who were using `@babel/polyfill`
- Loading branch information
1 parent
9bb8abb
commit 80f3b55
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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! | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jakeNiemiec
Author
Member
|
||
|
||
```sh | ||
yarn add --save core-js regenerator-runtime | ||
``` | ||
|
||
## [4.0.2] - 2019-03-06 | ||
|
||
- Bump the version on npm | ||
|
Is there a reason to do this given that they’re dependencies of webpacker?