Skip to content

Commit

Permalink
types: omit overridden options
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Feb 9, 2024
1 parent 0ff6fb7 commit 0c7432b
Showing 1 changed file with 37 additions and 13 deletions.
50 changes: 37 additions & 13 deletions packages/plugin-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@ export interface Options {

// options to pass on to vue/compiler-sfc
script?: Partial<
Pick<
Omit<
SFCScriptCompileOptions,
| 'babelParserPlugins'
| 'globalTypeFiles'
| 'propsDestructure'
| 'fs'
| 'hoistStatic'
| 'id'
| 'isProd'
| 'inlineTemplate'
| 'templateOptions'
| 'sourceMap'
| 'genDefaultAs'
| 'customElement'
| 'defineModel'
>
> & {
/**
Expand All @@ -53,17 +56,38 @@ export interface Options {
defineModel?: boolean
}
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<Pick<SFCStyleCompileOptions, 'trim'>>

/**
* Transform Vue SFCs into custom elements.
* - `true`: all `*.vue` imports are converted into custom elements
Expand Down

0 comments on commit 0c7432b

Please sign in to comment.