From 9b3e7be3e797602fb0aa8dbaba7d1d56f1ca392e Mon Sep 17 00:00:00 2001 From: Clark Du Date: Sat, 19 Jan 2019 12:27:15 +0000 Subject: [PATCH] fix: invalid plugin mode warning for all --- packages/builder/src/builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/builder.js b/packages/builder/src/builder.js index c340885ab2..af858c53d8 100644 --- a/packages/builder/src/builder.js +++ b/packages/builder/src/builder.js @@ -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' }