From 3fd51d5228fc487224bbfc1ec0d4b86ec151eed7 Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Thu, 4 Oct 2018 11:56:28 +0800 Subject: [PATCH] fix($core): unexpected warning enhanceAppFiles: support String & Object, clientDynamicModules: support Object --- packages/@vuepress/core/lib/plugin-api/constants.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@vuepress/core/lib/plugin-api/constants.js b/packages/@vuepress/core/lib/plugin-api/constants.js index b7c1d66ace..e9bcb63591 100644 --- a/packages/@vuepress/core/lib/plugin-api/constants.js +++ b/packages/@vuepress/core/lib/plugin-api/constants.js @@ -9,12 +9,12 @@ const PLUGIN_OPTION_META_MAP = { // options CHAIN_WEBPACK: { name: 'chainWebpack', types: [Function] }, ENHANCE_DEV_SERVER: { name: 'enhanceDevServer', types: [Function] }, - ENHANCE_APP_FILES: { name: 'enhanceAppFiles', types: [Array, Function] }, + ENHANCE_APP_FILES: { name: 'enhanceAppFiles', types: [String, Object, Array, Function] }, OUT_FILES: { name: 'outFiles', types: [Object] }, EXTEND_PAGE_DATA: { name: 'extendPageData', types: [Function] }, EXTEND_MARKDOWN: { name: 'extendMarkdown', types: [Function] }, CHAIN_MARKDOWN: { name: 'chainMarkdown', types: [Function] }, - CLIENT_DYNAMIC_MODULES: { name: 'clientDynamicModules', types: [Function] }, + CLIENT_DYNAMIC_MODULES: { name: 'clientDynamicModules', types: [Object, Function] }, CLIENT_ROOT_MIXIN: { name: 'clientRootMixin', types: [String] }, ADDITIONAL_PAGES: { name: 'additionalPages', types: [Function, Array] }, GLOBAL_UI_COMPONENTS: { name: 'globalUIComponents', types: [String, Array] },