Skip to content

Commit 432e6a0

Browse files
refactor: avoid guard (#1801)
1 parent 7ecf1eb commit 432e6a0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

index.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,7 @@ function hookIntoCompiler (compiler, options, plugin) {
712712
const entryPointUnfilteredFiles = compilation.entrypoints.get(entryName).getFiles();
713713

714714
const entryPointFiles = entryPointUnfilteredFiles.filter((chunkFile) => {
715-
// compilation.getAsset was introduced in webpack 4.4.0
716-
// once the support pre webpack 4.4.0 is dropped please
717-
// remove the following guard:
718-
const asset = compilation.getAsset && compilation.getAsset(chunkFile);
715+
const asset = compilation.getAsset(chunkFile);
719716
if (!asset) {
720717
return true;
721718
}

0 commit comments

Comments
 (0)