Skip to content

Commit

Permalink
fix: Fixed some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
DreierF authored and ChadKillingsworth committed Feb 14, 2020
1 parent 93c0504 commit de1c121
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 de1c121

Please sign in to comment.