From a5c83ac296a43361e7937bcea78ffe76e3359a64 Mon Sep 17 00:00:00 2001 From: javadoug Date: Fri, 13 Sep 2019 18:56:46 -0400 Subject: [PATCH] change runtime chunk name tilde is now dash (#5358) --- packages/react-scripts/config/webpack.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index c1403a51920..8150c7a2b34 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -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.