UNPKG

729 BJavaScriptView Raw
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 CommentCompilationWarning extends WebpackError {
14 /**
15 *
16 * @param {string} message warning message
17 * @param {DependencyLocation} loc affected lines of code
18 */
19 constructor(message, loc) {
20 super(message);
21
22 this.name = "CommentCompilationWarning";
23
24 this.loc = loc;
25 }
26}
27
28makeSerializable(
29 CommentCompilationWarning,
30 "webpack/lib/CommentCompilationWarning"
31);
32
33module.exports = CommentCompilationWarning;