source: trip-planner-front/node_modules/webpack/lib/UnsupportedFeatureWarning.js@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 780 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
8const WebpackError = require("./WebpackError");
9const makeSerializable = require("./util/makeSerializable");
10
11/** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */
12
13class UnsupportedFeatureWarning extends WebpackError {
14 /**
15 * @param {string} message description of warning
16 * @param {DependencyLocation} loc location start and end positions of the module
17 */
18 constructor(message, loc) {
19 super(message);
20
21 this.name = "UnsupportedFeatureWarning";
22 this.loc = loc;
23 this.hideStack = true;
24 }
25}
26
27makeSerializable(
28 UnsupportedFeatureWarning,
29 "webpack/lib/UnsupportedFeatureWarning"
30);
31
32module.exports = UnsupportedFeatureWarning;
Note: See TracBrowser for help on using the repository browser.