Skip to content

Commit eca7bad

Browse files
authored
Merge pull request webpack#6910 from mohsen1/more-inits
Add missing class member initializations found by TypeScript
2 parents 13ac6a1 + 589f40b commit eca7bad

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

lib/Compilation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ class Compilation extends Tapable {
208208
break;
209209
}
210210
});
211+
this.name = undefined;
211212
this.compiler = compiler;
212213
this.resolverFactory = compiler.resolverFactory;
213214
this.inputFileSystem = compiler.inputFileSystem;

lib/Compiler.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ class Compiler extends Tapable {
7474
}
7575
});
7676

77+
this.name = undefined;
78+
this.parentCompilation = undefined;
7779
this.outputPath = "";
7880
this.outputFileSystem = null;
7981
this.inputFileSystem = null;

lib/dependencies/HarmonyImportSpecifierDependency.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class HarmonyImportSpecifierDependency extends HarmonyImportDependency {
2828
this.callArgs = undefined;
2929
this.call = undefined;
3030
this.directImport = undefined;
31+
this.shorthand = undefined;
3132
}
3233

3334
get type() {

0 commit comments

Comments
 (0)