Commit 1b473e47 authored by Tim Teeling's avatar Tim Teeling Committed by Tim Neutkens

Fix with-polyfills example for Next 5 (#3740)

parent 73bf0ab1
......@@ -3,7 +3,11 @@ module.exports = {
const originalEntry = cfg.entry
cfg.entry = async () => {
const entries = await originalEntry()
entries['main.js'].unshift('./client/polyfills.js')
if (entries['main.js']) {
entries['main.js'].unshift('./client/polyfills.js')
}
return entries
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment