We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f831a97 commit 9e42435Copy full SHA for 9e42435
templates/components/plugin.js
@@ -4,7 +4,7 @@ import Vue from 'vue'
4
const globalComponents = {
5
<%= globalComponents.map(c => {
6
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})`
+ return ` ${c.pascalName.replace(/^Lazy/, '')}: () => import('../${relativeToBuild(c.filePath)}' /* webpackChunkName: "${c.chunkName}" */).then(c => ${exp})`
8
}).join(',\n') %>
9
}
10
0 commit comments