mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 00:52:01 +00:00
fix: exec require before return
This commit is contained in:
parent
f7378db9e0
commit
e3609b6d8a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user