Skip to content

Commit

Permalink
Improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jul 2, 2022
1 parent 3f40aa7 commit 2eb9851
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/utils/FileEmitter.ts
Expand Up @@ -145,10 +145,8 @@ function getChunkFileName(
return file.fileName;
}
if (facadeChunkByModule) {
const chunk = file.module && facadeChunkByModule.get(file.module);
if (chunk) {
return chunk.id || chunk.getFileName();
}
const chunk = facadeChunkByModule.get(file.module!)!;
return chunk.id || chunk.getFileName();
}
return error(errChunkNotGeneratedForFileName(file.fileName || file.name));
}
Expand Down
4 changes: 3 additions & 1 deletion test/chunking-form/samples/hashing/random-match/_config.js
@@ -1,6 +1,8 @@
module.exports = {
description: 'leaves random hash matches untransformed',
options: {
output: { entryFileNames: 'entry-[hash].js' }
output: {
entryFileNames: 'entry-[hash]-\uf7f9\ue4d30001\ue3cc\uf1fe-\uf7f9\ue4d31234\ue3cc\uf1fe.js'
}
}
};

0 comments on commit 2eb9851

Please sign in to comment.