Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6269698

Browse filesBrowse files
committed
fix: support propsDestructure and defineModel options
1 parent 9fb570c commit 6269698
Copy full SHA for 6269698

File tree

Expand file treeCollapse file tree

2 files changed

+16
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+16
-0
lines changed

‎src/index.ts

Copy file name to clipboardExpand all lines: src/index.ts
+14Lines changed: 14 additions & 0 deletions
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

Copy file name to clipboardExpand all lines: src/resolveScript.ts
+2Lines changed: 2 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.