main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
843 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | /*
|
---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
---|
| 3 | Author Ivan Kopeykin @vankop
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | "use strict";
|
---|
| 7 |
|
---|
| 8 | const WebpackError = require("./WebpackError");
|
---|
| 9 | const makeSerializable = require("./util/makeSerializable");
|
---|
| 10 |
|
---|
| 11 | /** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */
|
---|
| 12 |
|
---|
| 13 | class NodeStuffInWebError extends WebpackError {
|
---|
| 14 | /**
|
---|
| 15 | * @param {DependencyLocation} loc loc
|
---|
| 16 | * @param {string} expression expression
|
---|
| 17 | * @param {string} description description
|
---|
| 18 | */
|
---|
| 19 | constructor(loc, expression, description) {
|
---|
| 20 | super(
|
---|
| 21 | `${JSON.stringify(
|
---|
| 22 | expression
|
---|
| 23 | )} has been used, it will be undefined in next major version.
|
---|
| 24 | ${description}`
|
---|
| 25 | );
|
---|
| 26 |
|
---|
| 27 | this.name = "NodeStuffInWebError";
|
---|
| 28 | this.loc = loc;
|
---|
| 29 | }
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | makeSerializable(NodeStuffInWebError, "webpack/lib/NodeStuffInWebError");
|
---|
| 33 |
|
---|
| 34 | module.exports = NodeStuffInWebError;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.