Skip to content

Commit 4bf2ba4

Browse files
author
inuscript
committed
revert this.async (avoid may breaking change)
1 parent d03203d commit 4bf2ba4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/optimize/CommonsChunkPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function CommonsChunkPlugin(options) {
3232
this.minChunks = options.minChunks;
3333
this.selectedChunks = options.chunks;
3434
if(options.children) this.selectedChunks = false;
35-
this.asyncOption = options.async;
35+
this.async = options.async;
3636
this.minSize = options.minSize;
3737
this.ident = __filename + (nextIdent++);
3838
}
@@ -43,7 +43,7 @@ CommonsChunkPlugin.prototype.apply = function(compiler) {
4343
var filenameTemplate = this.filenameTemplate;
4444
var minChunks = this.minChunks;
4545
var selectedChunks = this.selectedChunks;
46-
var asyncOption = this.asyncOption;
46+
var asyncOption = this.async;
4747
var minSize = this.minSize;
4848
var ident = this.ident;
4949
compiler.plugin("this-compilation", function(compilation) {

0 commit comments

Comments
 (0)