From eecfd55997d5e2163e3e64ee72f3e8c414f3584c Mon Sep 17 00:00:00 2001 From: Miro Yovchev <2827783+myovchev@users.noreply.github.com> Date: Wed, 20 Nov 2024 19:02:25 +0200 Subject: [PATCH] Fix early return (#4808) --- modules/@apostrophecms/asset/lib/build/internals.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/@apostrophecms/asset/lib/build/internals.js b/modules/@apostrophecms/asset/lib/build/internals.js index 9bf354e57d..461bc6d746 100644 --- a/modules/@apostrophecms/asset/lib/build/internals.js +++ b/modules/@apostrophecms/asset/lib/build/internals.js @@ -308,9 +308,6 @@ module.exports = (self) => { const { imports = [], assets = [], dynamicImports = [] } = files; - if (!imports.length) { - continue; - } for (const file of [ ...imports, ...dynamicImports, ...assets ]) { if (seen[file]) {