Skip to content

Commit 860da9b

Browse files
authored
Merge branch 'next' into refactor/sets
2 parents 88ecff4 + 875074a commit 860da9b

90 files changed

Lines changed: 1060 additions & 1619 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/BasicEvaluatedExpression.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class BasicEvaluatedExpression {
189189
if(!this.options) this.options = [];
190190
options.forEach(item => {
191191
this.options.push(item);
192-
}, this);
192+
});
193193
return this;
194194
}
195195

lib/CachePlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class CachePlugin {
6565
callback();
6666
});
6767
});
68-
compiler.plugin("after-compile", function(compilation, callback) {
68+
compiler.plugin("after-compile", (compilation, callback) => {
6969
compilation.compiler._lastCompilationFileDependencies = compilation.fileDependencies;
7070
compilation.compiler._lastCompilationContextDependencies = compilation.contextDependencies;
7171
callback();

lib/Chunk.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ class Chunk {
541541
const chunksProcessed = [];
542542
const chunkHashMap = {};
543543
const chunkNameMap = {};
544-
(function addChunk(chunk) {
544+
const addChunk = chunk => {
545545
if(chunksProcessed.indexOf(chunk) >= 0) return;
546546
chunksProcessed.push(chunk);
547547
if(!chunk.hasRuntime() || includeEntries) {
@@ -550,7 +550,8 @@ class Chunk {
550550
chunkNameMap[chunk.id] = chunk.name;
551551
}
552552
chunk._chunks.forEach(addChunk);
553-
}(this));
553+
};
554+
addChunk(this);
554555
return {
555556
hash: chunkHashMap,
556557
name: chunkNameMap

0 commit comments

Comments
 (0)