Skip to content

Commit

Permalink
refactor: remove `bypassDefineComponentToExposePropsAndEmitsForJsScri…
Browse files Browse the repository at this point in the history
…ptSetupComponents`
  • Loading branch information
johnsoncodehk committed Dec 8, 2022
1 parent 87750e7 commit 9244174
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@
"type": "boolean",
"markdownDescription": "https://github.com/johnsoncodehk/volar/issues/1249"
},
"bypassDefineComponentToExposePropsAndEmitsForJsScriptSetupComponents": {
"type": "boolean",
"markdownDescription": "https://github.com/johnsoncodehk/volar/issues/1192"
},
"experimentalResolveStyleCssClasses": {
"enum": [
"scoped",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function generate(
teleports: SourceMaps.Mapping<TeleportMappingData>[] = [],
) {

const bypassDefineComponent = vueCompilerOptions.bypassDefineComponentToExposePropsAndEmitsForJsScriptSetupComponents && lang === 'js' || lang === 'jsx';
const bypassDefineComponent = lang === 'js' || lang === 'jsx';
const vueVersion = vueCompilerOptions.target ?? 3;
const vueLibName = getVueLibraryName(vueVersion);
const usedTypes = {
Expand Down
1 change: 0 additions & 1 deletion vue-language-tools/vue-language-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export interface ResolvedVueCompilerOptions {
optionsWrapper: [string, string] | [];
plugins: string[];
narrowingTypesInInlineHandlers: boolean;
bypassDefineComponentToExposePropsAndEmitsForJsScriptSetupComponents: boolean;

// experimental
experimentalResolveStyleCssClasses: 'scoped' | 'always' | 'never';
Expand Down
1 change: 0 additions & 1 deletion vue-language-tools/vue-language-core/src/utils/ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ export function resolveVueCompilerOptions(vueOptions: VueCompilerOptions): Resol
),
narrowingTypesInInlineHandlers: vueOptions.narrowingTypesInInlineHandlers ?? false,
plugins: vueOptions.plugins ?? [],
bypassDefineComponentToExposePropsAndEmitsForJsScriptSetupComponents: vueOptions.bypassDefineComponentToExposePropsAndEmitsForJsScriptSetupComponents ?? true,

// experimental
experimentalResolveStyleCssClasses: vueOptions.experimentalResolveStyleCssClasses ?? 'scoped',
Expand Down

0 comments on commit 9244174

Please sign in to comment.