Skip to content

Commit

Permalink
feat: set jsonpFunction by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Dec 6, 2018
1 parent af0a854 commit 8be8452
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ module.exports = function(webpackEnv) {
.replace(/\\/g, '/')
: isEnvDevelopment &&
(info => path.resolve(info.absoluteResourcePath).replace(/\\/g, '/')),
// Added to prevent conflicts within app when multiple webpack runtimes
// (from different compilation) are used on the same webpage.
jsonpFunction: '__REACT_APP',
},
optimization: {
minimize: isEnvProduction,
Expand Down

0 comments on commit 8be8452

Please sign in to comment.