Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
7ffcb0bf
Commit
7ffcb0bf
authored
Dec 04, 2018
by
陈雨童
Committed by
Tim Neutkens
Dec 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update polyfills (#5814)
#5521
parent
38db893a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
polyfills.js
examples/with-polyfills/client/polyfills.js
+2
-0
No files found.
examples/with-polyfills/client/polyfills.js
View file @
7ffcb0bf
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// core-js comes with Next.js. So, you can import it like below
// core-js comes with Next.js. So, you can import it like below
import
includes
from
'core-js/library/fn/string/virtual/includes'
import
includes
from
'core-js/library/fn/string/virtual/includes'
import
repeat
from
'core-js/library/fn/string/virtual/repeat'
import
repeat
from
'core-js/library/fn/string/virtual/repeat'
import
assign
from
'core-js/library/fn/object/assign'
// Add your polyfills
// Add your polyfills
// This files runs at the very beginning (even before React and Next.js core)
// This files runs at the very beginning (even before React and Next.js core)
...
@@ -9,3 +10,4 @@ console.log('Load your polyfills')
...
@@ -9,3 +10,4 @@ console.log('Load your polyfills')
String
.
prototype
.
includes
=
includes
String
.
prototype
.
includes
=
includes
String
.
prototype
.
repeat
=
repeat
String
.
prototype
.
repeat
=
repeat
Object
.
assign
=
assign
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment