Skip to content

Commit cef1ebc

Browse files
author
DavertMik
committed
referted container issue
1 parent 992359a commit cef1ebc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/container.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,6 @@ async function requireHelperFromModule(helperName, config, HelperClass) {
377377
try {
378378
// Try dynamic import for both CommonJS and ESM modules
379379
const mod = await import(moduleName)
380-
if (!mod || (!mod.default && !Object.keys(mod).length)) {
381-
throw new Error(`Helper module '${moduleName}' was imported but has no exports.`)
382-
}
383380
HelperClass = mod.default || mod
384381
} catch (err) {
385382
if (err.code === 'ERR_MODULE_NOT_FOUND') {

0 commit comments

Comments
 (0)