Commit d7d61d3d authored by Brendan Houle's avatar Brendan Houle Committed by Tim Neutkens

Prepend polyfills only once (#4643) (#4738)

parent 728871b0
...@@ -4,7 +4,7 @@ module.exports = { ...@@ -4,7 +4,7 @@ module.exports = {
cfg.entry = async () => { cfg.entry = async () => {
const entries = await originalEntry() 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') entries['main.js'].unshift('./client/polyfills.js')
} }
......
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