UNPKG

webpack

Version:

Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

41 lines (32 loc) • 1.13 kB
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const WebpackError = require("./WebpackError"); /** @import { DependencyLocation } from "../graph/Dependency" */ class RequireIncludeDeprecationWarning extends WebpackError { /** * Creates an instance of RequireIncludeDeprecationWarning. * @param {DependencyLocation} loc location */ constructor(loc) { super("require.include() is deprecated and will be removed soon."); /** @type {string} */ this.name = "RequireIncludeDeprecationWarning"; /** @type {DependencyLocation} */ this.loc = loc; } } makeSerializable( RequireIncludeDeprecationWarning, [ "webpack/lib/errors/RequireIncludeDeprecationWarning", // TODO in the next major release: remove, they restore pre-move cache packs "webpack/lib/dependencies/commonjs/RequireIncludeDependencyParserPlugin", "webpack/lib/dependencies/RequireIncludeDependencyParserPlugin" ], "RequireIncludeDeprecationWarning" ); module.exports = RequireIncludeDeprecationWarning;