Skip to content

Commit

Permalink
Merge pull request #7496 from build-your-own/master
Browse files Browse the repository at this point in the history
change variable defined identifier let to const
  • Loading branch information
sokra committed Jun 7, 2018
2 parents 5cbe74b + d6d7119 commit 603cb60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/WebpackOptionsApply.js
Expand Up @@ -201,7 +201,7 @@ class WebpackOptionsApply extends OptionsApply {
}

if (options.output.library || options.output.libraryTarget !== "var") {
let LibraryTemplatePlugin = require("./LibraryTemplatePlugin");
const LibraryTemplatePlugin = require("./LibraryTemplatePlugin");
new LibraryTemplatePlugin(
options.output.library,
options.output.libraryTarget,
Expand Down Expand Up @@ -245,7 +245,7 @@ class WebpackOptionsApply extends OptionsApply {
: modern
? "\n//# source" + "MappingURL=[url]"
: null;
let Plugin = evalWrapped
const Plugin = evalWrapped
? EvalSourceMapDevToolPlugin
: SourceMapDevToolPlugin;
new Plugin({
Expand Down Expand Up @@ -381,7 +381,7 @@ class WebpackOptionsApply extends OptionsApply {
new WarnCaseSensitiveModulesPlugin().apply(compiler);

if (options.cache) {
let CachePlugin = require("./CachePlugin");
const CachePlugin = require("./CachePlugin");
new CachePlugin(
typeof options.cache === "object" ? options.cache : null
).apply(compiler);
Expand Down

0 comments on commit 603cb60

Please sign in to comment.