Skip to content

Commit 678984b

Browse files
committed
remove second param to ChunkTemplate constructor
the ChunkTemplate contructor only expects one parameter, therefore it seams unnecessary that `this.mainTemplate` is passed
1 parent 8bc25f6 commit 678984b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Compilation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function Compilation(compiler) {
3434
this.performance = options && options.performance;
3535

3636
this.mainTemplate = new MainTemplate(this.outputOptions);
37-
this.chunkTemplate = new ChunkTemplate(this.outputOptions, this.mainTemplate);
37+
this.chunkTemplate = new ChunkTemplate(this.outputOptions);
3838
this.hotUpdateChunkTemplate = new HotUpdateChunkTemplate(this.outputOptions);
3939
this.moduleTemplate = new ModuleTemplate(this.outputOptions);
4040

0 commit comments

Comments
 (0)