| 12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
- */
- "use strict";
- /** @import { DependencyLocation } from "../Dependency" */
- const makeSerializable = require("../util/makeSerializable");
- const WebpackError = require("./WebpackError");
- class NodeStuffInWebError extends WebpackError {
- /**
- * Creates an instance of NodeStuffInWebError.
- * @param {DependencyLocation} loc loc
- * @param {string} expression expression
- * @param {string} description description
- */
- constructor(loc, expression, description) {
- super(
- `${JSON.stringify(
- expression
- )} has been used, it will be undefined in next major version.
- ${description}`
- );
- /** @type {string} */
- this.name = "NodeStuffInWebError";
- /** @type {DependencyLocation} */
- this.loc = loc;
- }
- }
- makeSerializable(NodeStuffInWebError, "webpack/lib/errors/NodeStuffInWebError");
- module.exports = NodeStuffInWebError;
|