Skip to content

Commit

Permalink
fix: experimentalRsolveNonScopedCssClasses -> `experimentalResolveN…
Browse files Browse the repository at this point in the history
…onScopedCssClasses`

#1038
  • Loading branch information
johnsoncodehk committed Mar 21, 2022
1 parent ed75138 commit 57c8fd4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"type": "boolean",
"markdownDescription": "https://github.com/johnsoncodehk/volar/issues/577"
},
"experimentalRsolveNonScopedCssClasses": {
"experimentalResolveNonScopedCssClasses": {
"type": "boolean",
"markdownDescription": "https://github.com/johnsoncodehk/volar/issues/1038"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-typescript/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ export interface VueCompilerOptions {
experimentalTemplateCompilerOptions?: any;
experimentalTemplateCompilerOptionsRequirePath?: string;
experimentalDisableTemplateSupport?: boolean;
experimentalRsolveNonScopedCssClasses?: boolean;
experimentalResolveNonScopedCssClasses?: boolean;
}
2 changes: 1 addition & 1 deletion packages/vue-typescript/src/use/useSfcTemplateScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function useSfcTemplateScript(
const cssScopedClasses = computed(() => {
const obj: Record<string, Record<string, TextRange[]>> = {};
for (const style of styleFiles.value) {
if (style.data.scoped || compilerOptions.experimentalRsolveNonScopedCssClasses) {
if (style.data.scoped || compilerOptions.experimentalResolveNonScopedCssClasses) {
const classes = getCssClasses(style);
obj[style.fileName] = classes;
}
Expand Down

0 comments on commit 57c8fd4

Please sign in to comment.