mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix: invalid plugin mode warning for all
This commit is contained in:
parent
602cf12216
commit
9b3e7be3e7
@ -117,7 +117,7 @@ export default class Builder {
|
||||
p.mode = 'client'
|
||||
} else if (p.mode === undefined) {
|
||||
p.mode = 'all'
|
||||
} else if (!['client', 'server'].includes(p.mode)) {
|
||||
} else if (!['client', 'server', 'all'].includes(p.mode)) {
|
||||
consola.warn(`Invalid plugin mode (server/client/all): '${p.mode}'. Falling back to 'all'`)
|
||||
p.mode = 'all'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user