Skip to content

Commit

Permalink
change to var in generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra authored and Kyle Truong committed Jul 1, 2017
1 parent 971bbb6 commit a6dea39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/HotModuleReplacementPlugin.js
Expand Up @@ -166,7 +166,7 @@ module.exports = class HotModuleReplacementPlugin {
.replace(/\$require\$/g, this.requireFn)
.replace(/\$hash\$/g, JSON.stringify(hash))
.replace(/\$requestTimeout\$/g, requestTimeout)
.replace(/\/\*foreachInstalledChunks\*\//g, chunk.chunks.length > 0 ? "for(const chunkId in installedChunks)" : `const chunkId = ${JSON.stringify(chunk.id)};`)
.replace(/\/\*foreachInstalledChunks\*\//g, chunk.chunks.length > 0 ? "for(var chunkId in installedChunks)" : `var chunkId = ${JSON.stringify(chunk.id)};`)
]);
});

Expand Down

0 comments on commit a6dea39

Please sign in to comment.