We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02b8c35 commit 789933cCopy full SHA for 789933c
packages/react-dev-utils/InlineChunkHtmlPlugin.js
@@ -43,13 +43,16 @@ class InlineChunkHtmlPlugin {
43
assets.headTags = assets.headTags.map(tagFunction);
44
assets.bodyTags = assets.bodyTags.map(tagFunction);
45
});
46
- hooks.afterEmit.tap('InlineChunkHtmlPlugin', () => {
47
- Object.keys(compilation.assets).forEach(assetName => {
48
- if (this.tests.some(test => assetName.match(test))) {
49
- delete compilation.assets[assetName];
50
- }
51
- });
52
+
+ // Still emit the runtime chunk for users who do not use our generated
+ // index.html file.
+ // hooks.afterEmit.tap('InlineChunkHtmlPlugin', () => {
+ // Object.keys(compilation.assets).forEach(assetName => {
+ // if (this.tests.some(test => assetName.match(test))) {
+ // delete compilation.assets[assetName];
53
+ // }
54
+ // });
55
56
57
}
58
0 commit comments