We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b4e460 commit 75eb5b1Copy full SHA for 75eb5b1
packages/@vue/cli/lib/Creator.js
@@ -307,10 +307,7 @@ module.exports = class Creator extends EventEmitter {
307
rawPlugins = sortObject(rawPlugins, ['@vue/cli-service'])
308
const plugins = []
309
for (const id of Object.keys(rawPlugins)) {
310
- const apply = loadModule(`${id}/generator`, this.context)
311
- if (!apply) {
312
- throw new Error(`Failed to resolve plugin: ${id}`)
313
- }
+ const apply = loadModule(`${id}/generator`, this.context) || (() => {})
314
let options = rawPlugins[id] || {}
315
if (options.prompts) {
316
const prompts = loadModule(`${id}/prompts`, this.context)
0 commit comments