We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d1775e commit 42ee721Copy full SHA for 42ee721
packages/react-scripts/config/webpack.config.js
@@ -202,6 +202,9 @@ module.exports = function(webpackEnv) {
202
// Prevents conflicts when multiple Webpack runtimes (from different apps)
203
// are used on the same page.
204
jsonpFunction: `webpackJsonp${appPackageJson.name}`,
205
+ // this defaults to 'window', but by setting it to 'this' then
206
+ // module chunks which are built will work in web workers as well.
207
+ globalObject: 'this',
208
},
209
optimization: {
210
minimize: isEnvProduction,
0 commit comments