NoAsyncChunksWarning.js 560 B

1234567891011121314151617181920
  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. }
  16. };