Skip to content

Commit 3e8772c

Browse files
committed
correct options parameter passage
1 parent 49b641c commit 3e8772c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports.hooks = (api) => {
3232
// if not already found, add Vue.use to file
3333
if(lines.findIndex(line => line.match(/Vue.use\(Extensionpoints/)) < 0) {
3434
const renderIndex = lines.findIndex(line => line.match(/new Vue/))
35-
lines[renderIndex] = `Vue.use(Extensionpoints, plugins)${EOL}${EOL}` + lines[renderIndex]
35+
lines[renderIndex] = `Vue.use(Extensionpoints, {plugins})${EOL}${EOL}` + lines[renderIndex]
3636
fs.writeFileSync(api.entryFile, lines.join(EOL), { encoding: 'utf-8' })
3737
}
3838

0 commit comments

Comments
 (0)