Skip to content

Commit 9e42435

Browse files
committed
fix(plugin): add missing wrapper
1 parent f831a97 commit 9e42435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/components/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Vue from 'vue'
44
const globalComponents = {
55
<%= globalComponents.map(c => {
66
const exp = c.export === 'default' ? `c.default || c` : `c['${c.export}']`
7-
return ` ${c.pascalName.replace(/^Lazy/, '')}: import('../${relativeToBuild(c.filePath)}' /* webpackChunkName: "${c.chunkName}" */).then(c => ${exp})`
7+
return ` ${c.pascalName.replace(/^Lazy/, '')}: () => import('../${relativeToBuild(c.filePath)}' /* webpackChunkName: "${c.chunkName}" */).then(c => ${exp})`
88
}).join(',\n') %>
99
}
1010

0 commit comments

Comments
 (0)