@vue/language-core 1.8.21 → 1.8.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/out/generators/script.js
CHANGED
|
@@ -91,6 +91,7 @@ lang, scriptRanges, scriptSetupRanges, htmlGen, compilerOptions, vueCompilerOpti
|
|
|
91
91
|
default: D[K]
|
|
92
92
|
}> : P[K]
|
|
93
93
|
};\n`);
|
|
94
|
+
codes.push(`type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {};\n`);
|
|
94
95
|
}
|
|
95
96
|
if (usedHelperTypes.WithTemplateSlots) {
|
|
96
97
|
codes.push(`type __VLS_WithTemplateSlots<T, S> = T & { new(): {\n`, `${(0, shared_1.getSlotsPropertyName)(vueCompilerOptions.target)}: S;\n`);
|
|
@@ -742,7 +743,7 @@ declare function defineProp<T>(value?: T | (() => T), required?: boolean, rest?:
|
|
|
742
743
|
for (let i = 0; i < styles.length; i++) {
|
|
743
744
|
const style = styles[i];
|
|
744
745
|
const option = vueCompilerOptions.experimentalResolveStyleCssClasses;
|
|
745
|
-
if (
|
|
746
|
+
if (option === 'always' || (option === 'scoped' && style.scoped)) {
|
|
746
747
|
for (const className of style.classNames) {
|
|
747
748
|
generateCssClassProperty(i, className.text.substring(1), { start: className.offset, end: className.offset + className.text.length }, 'boolean', true, !style.module);
|
|
748
749
|
}
|
package/out/plugins/vue-tsx.js
CHANGED
|
@@ -131,7 +131,7 @@ function createTsx(fileName, _sfc, { vueCompilerOptions, compilerOptions, codege
|
|
|
131
131
|
}
|
|
132
132
|
for (const style of _sfc.styles) {
|
|
133
133
|
const option = vueCompilerOptions.experimentalResolveStyleCssClasses;
|
|
134
|
-
if (
|
|
134
|
+
if (option === 'always' || (option === 'scoped' && style.scoped)) {
|
|
135
135
|
for (const className of style.classNames) {
|
|
136
136
|
classes.add(className.text.substring(1));
|
|
137
137
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/language-core",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.22",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"optional": true
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "1e8d09af0282c42dd816671ffcd5a2321276e3c3"
|
|
38
38
|
}
|