From 6269698f9fda37f0e3849db3e8b8e67ad1862f57 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 11 May 2023 11:25:37 +0100 Subject: [PATCH] fix: support propsDestructure and defineModel options --- src/index.ts | 14 ++++++++++++++ src/resolveScript.ts | 2 ++ 2 files changed, 16 insertions(+) diff --git a/src/index.ts b/src/index.ts index ec6f7dc5..dabc5c00 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 diff --git a/src/resolveScript.ts b/src/resolveScript.ts index 760683bb..ee954ee0 100644 --- a/src/resolveScript.ts +++ b/src/resolveScript.ts @@ -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,