-
Notifications
You must be signed in to change notification settings - Fork 26.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
/* eslint no-extend-native: 0 */ | ||
|
||
// Add your polyfills | ||
// This files runs at the very beginning (even before React and Next.js core) | ||
|
||
console.log('Load your polyfills') | ||
|
||
// core-js comes with Next.js. So, you can import it like below | ||
import includes from 'core-js/library/fn/string/virtual/includes' | ||
import repeat from 'core-js/library/fn/string/virtual/repeat' | ||
|
||
String.prototype.includes = includes | ||
String.prototype.repeat = repeat |