mirror of https://github.com/webpack/webpack.git
fix lint
This commit is contained in:
parent
a5e1f30c6b
commit
c5fff759ee
|
|
@ -254,7 +254,7 @@ module.exports = class HotModuleReplacementPlugin {
|
||||||
};
|
};
|
||||||
for (const key of Object.keys(records.chunkHashs)) {
|
for (const key of Object.keys(records.chunkHashs)) {
|
||||||
let chunkId;
|
let chunkId;
|
||||||
if(compiler.options.optimization.namedChunks){
|
if (compiler.options.optimization.namedChunks) {
|
||||||
chunkId = key;
|
chunkId = key;
|
||||||
} else {
|
} else {
|
||||||
chunkId = isNaN(+key) ? key : +key;
|
chunkId = isNaN(+key) ? key : +key;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue