Skip to content

Commit a5c83ac

Browse files
author
javadoug
committed
change runtime chunk name tilde is now dash (facebook#5358)
1 parent 74eb65a commit a5c83ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,10 @@ module.exports = function(webpackEnv) {
277277
},
278278
// Keep the runtime chunk separated to enable long term caching
279279
// https://twitter.com/wSokra/status/969679223278505985
280-
runtimeChunk: true,
280+
// https://github.com/facebook/create-react-app/issues/5358
281+
runtimeChunk: {
282+
name: entrypoint => `runtime-${entrypoint.name}`,
283+
},
281284
},
282285
resolve: {
283286
// This allows you to set a fallback for where Webpack should look for modules.

0 commit comments

Comments
 (0)