Skip to content

Commit

Permalink
fix: Fixed some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
DreierF committed Jan 11, 2020
1 parent a7e463b commit 1678c0c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/closure-compiler-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ class ClosureCompilerPlugin {
);
}
compiler.hooks.compilation.tap(PLUGIN, (compilation, params) =>
this.complation_(compilation, params)
this.compilation_(compilation, params)
);
}

complation_(compilation, { normalModuleFactory }) {
compilation_(compilation, { normalModuleFactory }) {
const runFullCompilation =
!compilation.compiler.parentCompilation ||
this.options.childCompilations(compilation);
Expand Down Expand Up @@ -1132,10 +1132,10 @@ class ClosureCompilerPlugin {
let src = '';
let sourceMap = null;
try {
const souceAndMap = compilation.assets[chunkFile].sourceAndMap();
src = souceAndMap.source;
if (souceAndMap.map) {
sourceMap = souceAndMap.map;
const sourceAndMap = compilation.assets[chunkFile].sourceAndMap();
src = sourceAndMap.source;
if (sourceAndMap.map) {
sourceMap = sourceAndMap.map;
}
} catch (e) {
compilation.errors.push(e);
Expand Down

0 comments on commit 1678c0c

Please sign in to comment.