Skip to content

Commit 1227054

Browse files
committed
use const instead of let in AmdMainTemplatePlugin
1 parent b7d0155 commit 1227054

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/AmdMainTemplatePlugin.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ class AmdMainTemplatePlugin {
1313
}
1414

1515
apply(compilation) {
16-
let mainTemplate = compilation.mainTemplate;
16+
const mainTemplate = compilation.mainTemplate;
1717

1818
compilation.templatesPlugin("render-with-entry", (source, chunk, hash) => {
19-
let externals = chunk.modules.filter((m) => m.external);
20-
let externalsDepsArray = JSON.stringify(externals.map((m) =>
19+
const externals = chunk.modules.filter((m) => m.external);
20+
const externalsDepsArray = JSON.stringify(externals.map((m) =>
2121
typeof m.request === "object" ? m.request.amd : m.request
2222
));
23-
let externalsArguments = externals.map((m) =>
23+
const externalsArguments = externals.map((m) =>
2424
`__WEBPACK_EXTERNAL_MODULE_${m.id}__`
2525
).join(", ");
2626

2727
if(this.name) {
28-
let name = mainTemplate.applyPluginsWaterfall("asset-path", this.name, {
28+
const name = mainTemplate.applyPluginsWaterfall("asset-path", this.name, {
2929
hash,
3030
chunk
3131
});

0 commit comments

Comments
 (0)