Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(chunkMap => {
spin.text = 'Building index document'
return getDocumentElement(compilationConfig, {
scripts: ['https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.en', 'vendor.bundle.js', 'app.bundle.js'].map(asset => ({
path: `js/${asset}`,
hash: chunkMap[asset]
}))
})
})
.then(doc =>