Skip to content

Commit

Permalink
fix: experimentalShamefullySupportOptionsApi -> experimentalImplicitW…
Browse files Browse the repository at this point in the history
…rapComponentOptionsWithDefineComponent

close #1291
  • Loading branch information
johnsoncodehk committed May 11, 2022
1 parent 3e434c7 commit a10a6ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -16,9 +16,9 @@
],
"markdownDescription": "https://github.com/johnsoncodehk/volar/pull/351"
},
"experimentalShamefullySupportOptionsApi": {
"experimentalImplicitWrapComponentOptionsWithDefineComponent": {
"type": "boolean",
"markdownDescription": "Support intellisense components that export options without `Vue.extend` and `defineComponent`. This is essentially a hack and not recommended to use it."
"markdownDescription": "Implicit wrap object literal component options export with `defineComponent()`."
},
"experimentalTemplateCompilerOptions": {
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-typescript/src/types.ts
Expand Up @@ -12,7 +12,7 @@ export interface ITemplateScriptData {

export interface VueCompilerOptions {
experimentalCompatMode?: 2 | 3;
experimentalShamefullySupportOptionsApi?: boolean;
experimentalImplicitWrapComponentOptionsWithDefineComponent?: boolean;
experimentalTemplateCompilerOptions?: any;
experimentalTemplateCompilerOptionsRequirePath?: string;
experimentalDisableTemplateSupport?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-typescript/src/use/useSfcScriptGen.ts
Expand Up @@ -46,7 +46,7 @@ export function useSfcScriptGen<T extends 'template' | 'script'>(
return bindTexts;
},
getVueLibraryName(compilerOptions.experimentalCompatMode === 2),
!!compilerOptions.experimentalShamefullySupportOptionsApi,
!!compilerOptions.experimentalImplicitWrapComponentOptionsWithDefineComponent,
)
);
const file = computed(() => {
Expand Down

0 comments on commit a10a6ab

Please sign in to comment.