|
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:
1.0 KB
|
| Rev | Line | |
|---|
| [9af201e] | 1 | /*
|
|---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
|---|
| 3 | Author Tobias Koppers @sokra
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | "use strict";
|
|---|
| 7 |
|
|---|
| 8 | const makeSerializable = require("../util/makeSerializable");
|
|---|
| 9 | const WebpackError = require("./WebpackError");
|
|---|
| 10 |
|
|---|
| 11 | /** @typedef {import("../Dependency").DependencyLocation} DependencyLocation */
|
|---|
| 12 |
|
|---|
| 13 | /**
|
|---|
| 14 | * Warning used for comment-related compilation issues, such as malformed magic
|
|---|
| 15 | * comments that webpack can parse but wants to report.
|
|---|
| 16 | */
|
|---|
| 17 | class CommentCompilationWarning extends WebpackError {
|
|---|
| 18 | /**
|
|---|
| 19 | * Captures a warning message together with the dependency location that
|
|---|
| 20 | * triggered it.
|
|---|
| 21 | * @param {string} message warning message
|
|---|
| 22 | * @param {DependencyLocation} loc affected lines of code
|
|---|
| 23 | */
|
|---|
| 24 | constructor(message, loc) {
|
|---|
| 25 | super(message);
|
|---|
| 26 |
|
|---|
| 27 | /** @type {string} */
|
|---|
| 28 | this.name = "CommentCompilationWarning";
|
|---|
| 29 | /** @type {DependencyLocation} */
|
|---|
| 30 | this.loc = loc;
|
|---|
| 31 | }
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
| 34 | makeSerializable(
|
|---|
| 35 | CommentCompilationWarning,
|
|---|
| 36 | "webpack/lib/errors/CommentCompilationWarning"
|
|---|
| 37 | );
|
|---|
| 38 |
|
|---|
| 39 | module.exports = CommentCompilationWarning;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.