Skip to content

Commit 8be8452

Browse files
committed
feat: set jsonpFunction by default
1 parent af0a854 commit 8be8452

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/react-scripts/config/webpack.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ module.exports = function(webpackEnv) {
178178
.replace(/\\/g, '/')
179179
: isEnvDevelopment &&
180180
(info => path.resolve(info.absoluteResourcePath).replace(/\\/g, '/')),
181+
// Added to prevent conflicts within app when multiple webpack runtimes
182+
// (from different compilation) are used on the same webpage.
183+
jsonpFunction: '__REACT_APP',
181184
},
182185
optimization: {
183186
minimize: isEnvProduction,

0 commit comments

Comments
 (0)