From 3f8b472d165ef9a0f7084d4110d92f6f77a2e423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Tue, 27 Feb 2024 19:52:34 +0800 Subject: [PATCH] chore(plugin-vue): update options on docs --- packages/plugin-vue/README.md | 47 +++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/packages/plugin-vue/README.md b/packages/plugin-vue/README.md index c62c25b7..35afc46d 100644 --- a/packages/plugin-vue/README.md +++ b/packages/plugin-vue/README.md @@ -24,27 +24,52 @@ export interface Options { // options to pass on to vue/compiler-sfc script?: Partial< - Pick< + Omit< SFCScriptCompileOptions, - | 'babelParserPlugins' - | 'globalTypeFiles' + | 'id' + | 'isProd' + | 'inlineTemplate' + | 'templateOptions' + | 'sourceMap' + | 'genDefaultAs' + | 'customElement' | 'defineModel' - | 'propsDestructure' - | 'fs' > > template?: Partial< - Pick< + Omit< SFCTemplateCompileOptions, - | 'compiler' - | 'compilerOptions' - | 'preprocessOptions' + | 'id' + | 'source' + | 'ast' + | 'filename' + | 'scoped' + | 'slotted' + | 'isProd' + | 'inMap' + | 'ssr' + | 'ssrCssVars' + | 'preprocessLang' + > + > + style?: Partial< + Omit< + SFCStyleCompileOptions, + | 'filename' + | 'id' + | 'isProd' + | 'source' + | 'scoped' + | 'cssDevSourcemap' + | 'postcssOptions' + | 'map' + | 'postcssPlugins' | 'preprocessCustomRequire' - | 'transformAssetUrls' + | 'preprocessLang' + | 'preprocessOptions' > > - style?: Partial> /** * Transform Vue SFCs into custom elements.