diff --git a/packages/nitro/src/rollup/dynamic-require.ts b/packages/nitro/src/rollup/dynamic-require.ts index 36602e520d..d33082f123 100644 --- a/packages/nitro/src/rollup/dynamic-require.ts +++ b/packages/nitro/src/rollup/dynamic-require.ts @@ -28,7 +28,7 @@ ${imports.map(i => ` ['${i.id}']: () => require('./${chunksDir}/${i.id}')`).join }; export default function dynamicRequire(id) { - return dynamicChunks[id]; + return dynamicChunks[id](); };` // const TMPL_CJS = ({ chunksDir }) => `export default function dynamicRequire(id) {