NoAsyncChunksWarning.js 611 B

123456789101112131415161718192021
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Sean Larkin @thelarkinn
  4. */
  5. "use strict";
  6. const WebpackError = require("../WebpackError");
  7. module.exports = class NoAsyncChunksWarning extends WebpackError {
  8. constructor() {
  9. super(
  10. "webpack performance recommendations: \n" +
  11. "You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.\n" +
  12. "For more info visit https://webpack.js.org/guides/code-splitting/"
  13. );
  14. this.name = "NoAsyncChunksWarning";
  15. Error.captureStackTrace(this, this.constructor);
  16. }
  17. };