@vue/compiler-sfc 3.4.28 → 3.4.29
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/dist/compiler-sfc.cjs.js +11 -10
- package/dist/compiler-sfc.esm-browser.js +11 -10
- package/package.json +5 -5
package/dist/compiler-sfc.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.4.
|
|
2
|
+
* @vue/compiler-sfc v3.4.29
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -15708,12 +15708,12 @@ function resolveParserPlugins(lang, userPlugins, dts = false) {
|
|
|
15708
15708
|
)) {
|
|
15709
15709
|
plugins.push("importAttributes");
|
|
15710
15710
|
}
|
|
15711
|
-
if (lang === "jsx" || lang === "tsx") {
|
|
15711
|
+
if (lang === "jsx" || lang === "tsx" || lang === "mtsx") {
|
|
15712
15712
|
plugins.push("jsx");
|
|
15713
15713
|
} else if (userPlugins) {
|
|
15714
15714
|
userPlugins = userPlugins.filter((p) => p !== "jsx");
|
|
15715
15715
|
}
|
|
15716
|
-
if (lang === "ts" || lang === "tsx") {
|
|
15716
|
+
if (lang === "ts" || lang === "mts" || lang === "tsx" || lang === "mtsx") {
|
|
15717
15717
|
plugins.push(["typescript", { dts }], "explicitResourceManagement");
|
|
15718
15718
|
if (!userPlugins || !userPlugins.includes("decorators")) {
|
|
15719
15719
|
plugins.push("decorators-legacy");
|
|
@@ -17931,6 +17931,9 @@ function resolveTypeElements(ctx, node, scope, typeParameters) {
|
|
|
17931
17931
|
}
|
|
17932
17932
|
function innerResolveTypeElements(ctx, node, scope, typeParameters) {
|
|
17933
17933
|
var _a, _b;
|
|
17934
|
+
if (node.leadingComments && node.leadingComments.some((c) => c.value.includes("@vue-ignore"))) {
|
|
17935
|
+
return { props: {} };
|
|
17936
|
+
}
|
|
17934
17937
|
switch (node.type) {
|
|
17935
17938
|
case "TSTypeLiteral":
|
|
17936
17939
|
return typeElementsToMap(ctx, node.members, scope, typeParameters);
|
|
@@ -18141,9 +18144,6 @@ function resolveInterfaceMembers(ctx, node, scope, typeParameters) {
|
|
|
18141
18144
|
);
|
|
18142
18145
|
if (node.extends) {
|
|
18143
18146
|
for (const ext of node.extends) {
|
|
18144
|
-
if (ext.leadingComments && ext.leadingComments.some((c) => c.value.includes("@vue-ignore"))) {
|
|
18145
|
-
continue;
|
|
18146
|
-
}
|
|
18147
18147
|
try {
|
|
18148
18148
|
const { props, calls } = resolveTypeElements(ctx, ext, scope);
|
|
18149
18149
|
for (const key in props) {
|
|
@@ -18163,7 +18163,8 @@ If this previously worked in 3.2, you can instruct the compiler to ignore this e
|
|
|
18163
18163
|
interface Props extends /* @vue-ignore */ Base {}
|
|
18164
18164
|
|
|
18165
18165
|
Note: both in 3.2 or with the ignore, the properties in the base type are treated as fallthrough attrs at runtime.`,
|
|
18166
|
-
ext
|
|
18166
|
+
ext,
|
|
18167
|
+
scope
|
|
18167
18168
|
);
|
|
18168
18169
|
}
|
|
18169
18170
|
}
|
|
@@ -18671,12 +18672,12 @@ function fileToScope(ctx, filename, asGlobal = false) {
|
|
|
18671
18672
|
}
|
|
18672
18673
|
function parseFile(filename, content, parserPlugins) {
|
|
18673
18674
|
const ext = path$3.extname(filename);
|
|
18674
|
-
if (ext === ".ts" || ext === ".tsx") {
|
|
18675
|
+
if (ext === ".ts" || ext === ".mts" || ext === ".tsx" || ext === ".mtsx") {
|
|
18675
18676
|
return parser$1.parse(content, {
|
|
18676
18677
|
plugins: resolveParserPlugins(
|
|
18677
18678
|
ext.slice(1),
|
|
18678
18679
|
parserPlugins,
|
|
18679
|
-
|
|
18680
|
+
/\.d\.m?ts$/.test(filename)
|
|
18680
18681
|
),
|
|
18681
18682
|
sourceType: "module"
|
|
18682
18683
|
}).program.body;
|
|
@@ -20848,7 +20849,7 @@ function isStaticNode(node) {
|
|
|
20848
20849
|
return false;
|
|
20849
20850
|
}
|
|
20850
20851
|
|
|
20851
|
-
const version = "3.4.
|
|
20852
|
+
const version = "3.4.29";
|
|
20852
20853
|
const parseCache = parseCache$1;
|
|
20853
20854
|
const errorMessages = {
|
|
20854
20855
|
...CompilerDOM.errorMessages,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.4.
|
|
2
|
+
* @vue/compiler-sfc v3.4.29
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -45357,12 +45357,12 @@ function resolveParserPlugins(lang, userPlugins, dts = false) {
|
|
|
45357
45357
|
)) {
|
|
45358
45358
|
plugins.push("importAttributes");
|
|
45359
45359
|
}
|
|
45360
|
-
if (lang === "jsx" || lang === "tsx") {
|
|
45360
|
+
if (lang === "jsx" || lang === "tsx" || lang === "mtsx") {
|
|
45361
45361
|
plugins.push("jsx");
|
|
45362
45362
|
} else if (userPlugins) {
|
|
45363
45363
|
userPlugins = userPlugins.filter((p) => p !== "jsx");
|
|
45364
45364
|
}
|
|
45365
|
-
if (lang === "ts" || lang === "tsx") {
|
|
45365
|
+
if (lang === "ts" || lang === "mts" || lang === "tsx" || lang === "mtsx") {
|
|
45366
45366
|
plugins.push(["typescript", { dts }], "explicitResourceManagement");
|
|
45367
45367
|
if (!userPlugins || !userPlugins.includes("decorators")) {
|
|
45368
45368
|
plugins.push("decorators-legacy");
|
|
@@ -45577,6 +45577,9 @@ function resolveTypeElements(ctx, node, scope, typeParameters) {
|
|
|
45577
45577
|
}
|
|
45578
45578
|
function innerResolveTypeElements(ctx, node, scope, typeParameters) {
|
|
45579
45579
|
var _a, _b;
|
|
45580
|
+
if (node.leadingComments && node.leadingComments.some((c) => c.value.includes("@vue-ignore"))) {
|
|
45581
|
+
return { props: {} };
|
|
45582
|
+
}
|
|
45580
45583
|
switch (node.type) {
|
|
45581
45584
|
case "TSTypeLiteral":
|
|
45582
45585
|
return typeElementsToMap(ctx, node.members, scope, typeParameters);
|
|
@@ -45787,9 +45790,6 @@ function resolveInterfaceMembers(ctx, node, scope, typeParameters) {
|
|
|
45787
45790
|
);
|
|
45788
45791
|
if (node.extends) {
|
|
45789
45792
|
for (const ext of node.extends) {
|
|
45790
|
-
if (ext.leadingComments && ext.leadingComments.some((c) => c.value.includes("@vue-ignore"))) {
|
|
45791
|
-
continue;
|
|
45792
|
-
}
|
|
45793
45793
|
try {
|
|
45794
45794
|
const { props, calls } = resolveTypeElements(ctx, ext, scope);
|
|
45795
45795
|
for (const key in props) {
|
|
@@ -45809,7 +45809,8 @@ If this previously worked in 3.2, you can instruct the compiler to ignore this e
|
|
|
45809
45809
|
interface Props extends /* @vue-ignore */ Base {}
|
|
45810
45810
|
|
|
45811
45811
|
Note: both in 3.2 or with the ignore, the properties in the base type are treated as fallthrough attrs at runtime.`,
|
|
45812
|
-
ext
|
|
45812
|
+
ext,
|
|
45813
|
+
scope
|
|
45813
45814
|
);
|
|
45814
45815
|
}
|
|
45815
45816
|
}
|
|
@@ -46229,12 +46230,12 @@ function fileToScope(ctx, filename, asGlobal = false) {
|
|
|
46229
46230
|
}
|
|
46230
46231
|
function parseFile(filename, content, parserPlugins) {
|
|
46231
46232
|
const ext = extname(filename);
|
|
46232
|
-
if (ext === ".ts" || ext === ".tsx") {
|
|
46233
|
+
if (ext === ".ts" || ext === ".mts" || ext === ".tsx" || ext === ".mtsx") {
|
|
46233
46234
|
return parse_1$1(content, {
|
|
46234
46235
|
plugins: resolveParserPlugins(
|
|
46235
46236
|
ext.slice(1),
|
|
46236
46237
|
parserPlugins,
|
|
46237
|
-
|
|
46238
|
+
/\.d\.m?ts$/.test(filename)
|
|
46238
46239
|
),
|
|
46239
46240
|
sourceType: "module"
|
|
46240
46241
|
}).program.body;
|
|
@@ -48436,7 +48437,7 @@ var __spreadValues = (a, b) => {
|
|
|
48436
48437
|
}
|
|
48437
48438
|
return a;
|
|
48438
48439
|
};
|
|
48439
|
-
const version = "3.4.
|
|
48440
|
+
const version = "3.4.29";
|
|
48440
48441
|
const parseCache = parseCache$1;
|
|
48441
48442
|
const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
|
|
48442
48443
|
const walk = walk$2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-sfc",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.29",
|
|
4
4
|
"description": "@vue/compiler-sfc",
|
|
5
5
|
"main": "dist/compiler-sfc.cjs.js",
|
|
6
6
|
"module": "dist/compiler-sfc.esm-browser.js",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"magic-string": "^0.30.10",
|
|
48
48
|
"postcss": "^8.4.38",
|
|
49
49
|
"source-map-js": "^1.2.0",
|
|
50
|
-
"@vue/
|
|
51
|
-
"@vue/compiler-
|
|
52
|
-
"@vue/compiler-
|
|
53
|
-
"@vue/
|
|
50
|
+
"@vue/compiler-core": "3.4.29",
|
|
51
|
+
"@vue/compiler-dom": "3.4.29",
|
|
52
|
+
"@vue/compiler-ssr": "3.4.29",
|
|
53
|
+
"@vue/shared": "3.4.29"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/types": "^7.24.7",
|