2018-02-04 10:50:48 +00:00
|
|
|
/* eslint no-extend-native: 0 */
|
2018-03-27 18:11:03 +00:00
|
|
|
// 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'
|
2018-12-04 13:53:24 +00:00
|
|
|
import assign from 'core-js/library/fn/object/assign'
|
2018-02-04 10:50:48 +00:00
|
|
|
|
|
|
|
// Add your polyfills
|
|
|
|
// This files runs at the very beginning (even before React and Next.js core)
|
|
|
|
console.log('Load your polyfills')
|
|
|
|
|
|
|
|
String.prototype.includes = includes
|
|
|
|
String.prototype.repeat = repeat
|
2018-12-04 13:53:24 +00:00
|
|
|
Object.assign = assign
|