Skip to content

Commit

Permalink
fix(plugin): add missing wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 19, 2020
1 parent f831a97 commit 9e42435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/components/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Vue from 'vue'
const globalComponents = {
<%= globalComponents.map(c => {
const exp = c.export === 'default' ? `c.default || c` : `c['${c.export}']`
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})`
}).join(',\n') %>
}

Expand Down

0 comments on commit 9e42435

Please sign in to comment.