Skip to content

Commit

Permalink
fix: exec require before return
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 14, 2020
1 parent 5fade11 commit a3fb537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup/dynamic-require.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a3fb537

Please sign in to comment.