Skip to content

Commit

Permalink
docs(v7-migration): add core-js v3 path for importing flatMap (#2093)
Browse files Browse the repository at this point in the history
The `@latest` version of core-js is now v3, which has a different path to specific polyfills than v2.
  • Loading branch information
tinymachine authored and JLHwung committed Sep 3, 2019
1 parent 77c34e6 commit 251f8b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/v7-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ If you want to use proposals, you will need to import these independently. You s
e.g.

```js
// for core-js v2:
import "core-js/fn/array/flat-map";

// for core-js v3:
import "core-js/features/array/flat-map";
```

Below is a list of Stage < 3 proposal polyfills in `core-js` v2.
Expand Down

0 comments on commit 251f8b9

Please sign in to comment.