Skip to content

Commit 8b3e587

Browse files
author
con-ssc
authored
Added {} around installedModules
1 parent 796ba56 commit 8b3e587

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/MainTemplate.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ module.exports = class MainTemplate extends Template {
5858
return this.asString([
5959
source,
6060
"// Check if module is in cache",
61-
"if(installedModules[moduleId])",
61+
"if(installedModules[moduleId]) {",
6262
this.indent("return installedModules[moduleId].exports;"),
63-
"",
63+
"}",
6464
"// Create a new module (and put it into the cache)",
6565
"var module = installedModules[moduleId] = {",
6666
this.indent(this.applyPluginsWaterfall("module-obj", "", chunk, hash, "moduleId")),

0 commit comments

Comments
 (0)