Skip to content

Commit 6269698

Browse files
committed
fix: support propsDestructure and defineModel options
1 parent 9fb570c commit 6269698

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/index.ts

+14
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,21 @@ export interface VueLoaderOptions {
3030
transformAssetUrls?: SFCTemplateCompileOptions['transformAssetUrls']
3131
compiler?: TemplateCompiler | string
3232
compilerOptions?: CompilerOptions
33+
/**
34+
* TODO remove in 3.4
35+
* @deprecated
36+
*/
3337
reactivityTransform?: boolean
38+
39+
/**
40+
* @experimental
41+
*/
42+
propsDestructure?: boolean
43+
/**
44+
* @experimental
45+
*/
46+
defineModel?: boolean
47+
3448
customElement?: boolean | RegExp
3549

3650
hotReload?: boolean

src/resolveScript.ts

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ export function resolveScript(
6262
isProd,
6363
inlineTemplate: enableInline,
6464
reactivityTransform: options.reactivityTransform,
65+
propsDestructure: options.propsDestructure,
66+
defineModel: options.defineModel,
6567
babelParserPlugins: options.babelParserPlugins,
6668
templateOptions: {
6769
ssr: isServer,

0 commit comments

Comments
 (0)