From 1678c0c6795a5cfcc2c353a161093a3e66046871 Mon Sep 17 00:00:00 2001 From: Florian Dreier Date: Sat, 11 Jan 2020 12:25:40 +0100 Subject: [PATCH] fix: Fixed some typos --- src/closure-compiler-plugin.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/closure-compiler-plugin.js b/src/closure-compiler-plugin.js index 6f9a8c9..0910b03 100644 --- a/src/closure-compiler-plugin.js +++ b/src/closure-compiler-plugin.js @@ -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); @@ -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);