Skip to content

Commit 785cfd5

Browse files
TheLarkInnsokra
authored andcommitted
chore(performance): add extra warning file forgot to check in
1 parent 93ae6bc commit 785cfd5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
MIT License http://www.opensource.org/licenses/mit-license.php
3+
Author Sean Larkin @thelarkinn
4+
*/
5+
function NoAsyncChunksWarning() {
6+
Error.call(this);
7+
Error.captureStackTrace(this, NoAsyncChunksWarning);
8+
this.name = "NoAsyncChunksWarning";
9+
10+
this.message = "webpack performance recommendations: \n" +
11+
"You can limit the size of your bundles by using System.import() or require.ensure to lazy load some parts of your application.\n" +
12+
"For more info visit https://webpack.github.io/docs/code-splitting.html";
13+
}
14+
module.exports = NoAsyncChunksWarning;
15+
16+
NoAsyncChunksWarning.prototype = Object.create(Error.prototype);
17+
NoAsyncChunksWarning.prototype.constructor = NoAsyncChunksWarning;

0 commit comments

Comments
 (0)