Skip to content

Commit

Permalink
Fixed chunk minification for STANDARD mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DreierF committed Jan 11, 2020
1 parent cac6030 commit 5e4df0b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/closure-compiler-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,9 @@ class ClosureCompilerPlugin {
}
allSources.push(srcInfo);
});
let chunkDefinitionString = `${chunkDefArray[i].name}:${chunkDefArray[i].sources.length}`;
let chunkDefinitionString = `${chunkDefArray[i].name}:${
chunkDefArray[i].sources.length
}`;
if (chunkDefArray[i].parentNames.size > 0) {
chunkDefinitionString += `:${Array.from(
chunkDefArray[i].parentNames
Expand Down Expand Up @@ -1165,7 +1167,7 @@ class ClosureCompilerPlugin {
childGroup.chunks.forEach((childChunk) => {
chunksToAdd.unshift({
chunk: childChunk,
parentNames: [safeChunkName],
parentChunkNames: [safeChunkName],
});
});
chunkQueue.push(...chunksToAdd);
Expand Down Expand Up @@ -1354,7 +1356,9 @@ class ClosureCompilerPlugin {
error.originalLocation.source !== error.source ||
error.originalLocation.line !== error.line
) {
formattedMsg += ` (originally at ${originalSource}${error.originalLocation.line})`;
formattedMsg += ` (originally at ${originalSource}${
error.originalLocation.line
})`;
}
}
formattedMsg += ` from closure-compiler: ${error.description}`;
Expand Down

0 comments on commit 5e4df0b

Please sign in to comment.