Skip to content

Commit d6d7119

Browse files
committed
change variable defined identifier let to const
1 parent 551384a commit d6d7119

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/WebpackOptionsApply.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class WebpackOptionsApply extends OptionsApply {
201201
}
202202

203203
if (options.output.library || options.output.libraryTarget !== "var") {
204-
let LibraryTemplatePlugin = require("./LibraryTemplatePlugin");
204+
const LibraryTemplatePlugin = require("./LibraryTemplatePlugin");
205205
new LibraryTemplatePlugin(
206206
options.output.library,
207207
options.output.libraryTarget,
@@ -245,7 +245,7 @@ class WebpackOptionsApply extends OptionsApply {
245245
: modern
246246
? "\n//# source" + "MappingURL=[url]"
247247
: null;
248-
let Plugin = evalWrapped
248+
const Plugin = evalWrapped
249249
? EvalSourceMapDevToolPlugin
250250
: SourceMapDevToolPlugin;
251251
new Plugin({
@@ -381,7 +381,7 @@ class WebpackOptionsApply extends OptionsApply {
381381
new WarnCaseSensitiveModulesPlugin().apply(compiler);
382382

383383
if (options.cache) {
384-
let CachePlugin = require("./CachePlugin");
384+
const CachePlugin = require("./CachePlugin");
385385
new CachePlugin(
386386
typeof options.cache === "object" ? options.cache : null
387387
).apply(compiler);

0 commit comments

Comments
 (0)