Skip to content

Commit

Permalink
fix: support propsDestructure and defineModel options
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 11, 2023
1 parent 9fb570c commit 6269698
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,21 @@ export interface VueLoaderOptions {
transformAssetUrls?: SFCTemplateCompileOptions['transformAssetUrls']
compiler?: TemplateCompiler | string
compilerOptions?: CompilerOptions
/**
* TODO remove in 3.4
* @deprecated
*/
reactivityTransform?: boolean

/**
* @experimental
*/
propsDestructure?: boolean
/**
* @experimental
*/
defineModel?: boolean

customElement?: boolean | RegExp

hotReload?: boolean
Expand Down
2 changes: 2 additions & 0 deletions src/resolveScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export function resolveScript(
isProd,
inlineTemplate: enableInline,
reactivityTransform: options.reactivityTransform,
propsDestructure: options.propsDestructure,
defineModel: options.defineModel,
babelParserPlugins: options.babelParserPlugins,
templateOptions: {
ssr: isServer,
Expand Down

0 comments on commit 6269698

Please sign in to comment.