Skip to content

Commit 34b6b13

Browse files
committed
Pass message to base class
1 parent 6789a5e commit 34b6b13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/dependencies/ImportParserPlugin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,9 @@ class ImportParserPlugin {
262262

263263
class CommentCompilationWarning extends WebpackError {
264264
constructor(message, module, loc) {
265-
super();
265+
super(message);
266266

267267
this.name = "CommentCompilationWarning";
268-
this.message = message;
269268

270269
this.origin = this.module = module;
271270
this.originLoc = loc;

0 commit comments

Comments
 (0)