source: frontend/node_modules/webpack/lib/errors/NodeStuffInWebError.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 917 bytes
Line 
1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra
4*/
5
6"use strict";
7
8/** @typedef {import("../Dependency").DependencyLocation} DependencyLocation */
9
10const makeSerializable = require("../util/makeSerializable");
11const WebpackError = require("./WebpackError");
12
13class NodeStuffInWebError extends WebpackError {
14 /**
15 * Creates an instance of NodeStuffInWebError.
16 * @param {DependencyLocation} loc loc
17 * @param {string} expression expression
18 * @param {string} description description
19 */
20 constructor(loc, expression, description) {
21 super(
22 `${JSON.stringify(
23 expression
24 )} has been used, it will be undefined in next major version.
25${description}`
26 );
27
28 /** @type {string} */
29 this.name = "NodeStuffInWebError";
30 this.loc = loc;
31 }
32}
33
34makeSerializable(NodeStuffInWebError, "webpack/lib/NodeStuffInWebError");
35
36module.exports = NodeStuffInWebError;
Note: See TracBrowser for help on using the repository browser.