mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
parent
728871b005
commit
d7d61d3d4a
|
@ -4,7 +4,7 @@ module.exports = {
|
|||
cfg.entry = async () => {
|
||||
const entries = await originalEntry()
|
||||
|
||||
if (entries['main.js']) {
|
||||
if (entries['main.js'] && !entries['main.js'].includes('./client/polyfills.js')) {
|
||||
entries['main.js'].unshift('./client/polyfills.js')
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue