mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-18 05:10:05 -06:00
@@ -307,10 +307,7 @@ module.exports = class Creator extends EventEmitter {
|
||||
rawPlugins = sortObject(rawPlugins, ['@vue/cli-service'])
|
||||
const plugins = []
|
||||
for (const id of Object.keys(rawPlugins)) {
|
||||
const apply = loadModule(`${id}/generator`, this.context)
|
||||
if (!apply) {
|
||||
throw new Error(`Failed to resolve plugin: ${id}`)
|
||||
}
|
||||
const apply = loadModule(`${id}/generator`, this.context) || (() => {})
|
||||
let options = rawPlugins[id] || {}
|
||||
if (options.prompts) {
|
||||
const prompts = loadModule(`${id}/prompts`, this.context)
|
||||
|
||||
Reference in New Issue
Block a user