Skip to content

Commit 9e07b1e

Browse files
shigmaulivz
authored andcommitted
feat($core): support array as plugin options (#1493)
1 parent 61c5954 commit 9e07b1e

File tree

1 file changed

+1
-1
lines changed
  • packages/@vuepress/core/lib/node/plugin-api

1 file changed

+1
-1
lines changed

packages/@vuepress/core/lib/node/plugin-api/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exports.flattenPlugin = function (
2222
pluginContext,
2323
self
2424
) {
25-
const { valid, warnMsg } = assertTypes(pluginOptions, [Object, Boolean])
25+
const { valid, warnMsg } = assertTypes(pluginOptions, [Object, Array, Boolean])
2626
if (!valid) {
2727
if (pluginOptions !== undefined) {
2828
logger.warn(

0 commit comments

Comments
 (0)