Skip to content

Commit 4d89326

Browse files
TheLarkInnsokra
authored andcommitted
chore(perfbudget): normalize error message indenation and readibility
1 parent 9c337ff commit 4d89326

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/performance/AssetsOverSizeLimitWarning.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function AssetsOverSizeLimitWarning(assetsOverSizeLimit, compilation) {
1212
return "\n -" + asset.name;
1313
}).join("");
1414

15-
this.message = "The following assets exceed the recommended size limit.\n" +
15+
this.message = "asset size limit: The following assets exceed the recommended size limit.\n" +
1616
"This can impact web performance.\n" +
1717
"Assets: " + assetLists;
1818
}

lib/performance/EmittedAssetSizeLimitPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ EmittedAssetSizeLimitPlugin.prototype.apply = function(compiler) {
147147
}
148148

149149
if(!hasAsyncChunks) {
150-
warnings.push(new Error("EmittedAssetSizeWarning: NoAsyncChunks: " +
150+
warnings.push(new Error("webpack performance recommendations: \n" +
151151
"You can limit the size of your bundles by using System.import() or require.ensure to lazy load some parts of your application.\n" +
152152
"For more info visit https://webpack.github.io/docs/code-splitting.html"
153153
));

lib/performance/EntrypointsOverSizeLimitWarning.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function EntrypointsOverSizeLimitWarning(entrypoints, compilation, formatSizeFn)
1717
}).join("");
1818
}).join("");
1919

20-
this.message = "The following Entrypoints combined asset size exceeds the recommended limit. " +
20+
this.message = "entrypoint size limit: The following Entrypoints combined asset size exceeds the recommended limit. " +
2121
"This can impact web performance.\n" +
2222
"Entrypoints: \n" +
2323
entrypointList;

0 commit comments

Comments
 (0)