Skip to content

Commit

Permalink
change runtime chunk name tilde is now dash (facebook#5358)
Browse files Browse the repository at this point in the history
  • Loading branch information
javadoug committed Sep 13, 2019
1 parent 74eb65a commit a5c83ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ module.exports = function(webpackEnv) {
},
// Keep the runtime chunk separated to enable long term caching
// https://twitter.com/wSokra/status/969679223278505985
runtimeChunk: true,
// https://github.com/facebook/create-react-app/issues/5358
runtimeChunk: {
name: entrypoint => `runtime-${entrypoint.name}`,
},
},
resolve: {
// This allows you to set a fallback for where Webpack should look for modules.
Expand Down

0 comments on commit a5c83ac

Please sign in to comment.