@vue/compiler-sfc 3.5.0-beta.3 → 3.5.0-rc.1
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.5.0-
|
|
2
|
+
* @vue/compiler-sfc v3.5.0-rc.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1917,7 +1917,7 @@ function parse$2(source, options = {}) {
|
|
|
1917
1917
|
if (!descriptor.template && !descriptor.script && !descriptor.scriptSetup) {
|
|
1918
1918
|
errors.push(
|
|
1919
1919
|
new SyntaxError(
|
|
1920
|
-
`At least one <template> or <script> is required in a single file component
|
|
1920
|
+
`At least one <template> or <script> is required in a single file component. ${descriptor.filename}`
|
|
1921
1921
|
)
|
|
1922
1922
|
);
|
|
1923
1923
|
}
|
|
@@ -18635,7 +18635,7 @@ function resolveWithTS(containingFile, source, ts2, fs) {
|
|
|
18635
18635
|
return fs.realpath ? fs.realpath(filename) : filename;
|
|
18636
18636
|
}
|
|
18637
18637
|
}
|
|
18638
|
-
function loadTSConfig(configPath, ts2, fs) {
|
|
18638
|
+
function loadTSConfig(configPath, ts2, fs, visited = /* @__PURE__ */ new Set()) {
|
|
18639
18639
|
const parseConfigHost = ts2.sys;
|
|
18640
18640
|
const config = ts2.parseJsonConfigFileContent(
|
|
18641
18641
|
ts2.readConfigFile(configPath, fs.readFile).config,
|
|
@@ -18645,14 +18645,15 @@ function loadTSConfig(configPath, ts2, fs) {
|
|
|
18645
18645
|
configPath
|
|
18646
18646
|
);
|
|
18647
18647
|
const res = [config];
|
|
18648
|
+
visited.add(configPath);
|
|
18648
18649
|
if (config.projectReferences) {
|
|
18649
18650
|
for (const ref of config.projectReferences) {
|
|
18650
18651
|
const refPath = ts2.resolveProjectReferencePath(ref);
|
|
18651
|
-
if (!fs.fileExists(refPath)) {
|
|
18652
|
+
if (visited.has(refPath) || !fs.fileExists(refPath)) {
|
|
18652
18653
|
continue;
|
|
18653
18654
|
}
|
|
18654
18655
|
tsConfigRefMap.set(refPath, configPath);
|
|
18655
|
-
res.unshift(...loadTSConfig(refPath, ts2, fs));
|
|
18656
|
+
res.unshift(...loadTSConfig(refPath, ts2, fs, visited));
|
|
18656
18657
|
}
|
|
18657
18658
|
}
|
|
18658
18659
|
return res;
|
|
@@ -20862,7 +20863,7 @@ function isStaticNode(node) {
|
|
|
20862
20863
|
return false;
|
|
20863
20864
|
}
|
|
20864
20865
|
|
|
20865
|
-
const version = "3.5.0-
|
|
20866
|
+
const version = "3.5.0-rc.1";
|
|
20866
20867
|
const parseCache = parseCache$1;
|
|
20867
20868
|
const errorMessages = {
|
|
20868
20869
|
...CompilerDOM.errorMessages,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.5.0-
|
|
2
|
+
* @vue/compiler-sfc v3.5.0-rc.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -22356,7 +22356,7 @@ function genNode(node, context) {
|
|
|
22356
22356
|
case 26:
|
|
22357
22357
|
genReturnStatement(node, context);
|
|
22358
22358
|
break;
|
|
22359
|
-
/*
|
|
22359
|
+
/* v8 ignore start */
|
|
22360
22360
|
case 10:
|
|
22361
22361
|
break;
|
|
22362
22362
|
default:
|
|
@@ -26733,7 +26733,7 @@ function parse$7(source, options = {}) {
|
|
|
26733
26733
|
if (!descriptor.template && !descriptor.script && !descriptor.scriptSetup) {
|
|
26734
26734
|
errors.push(
|
|
26735
26735
|
new SyntaxError(
|
|
26736
|
-
`At least one <template> or <script> is required in a single file component
|
|
26736
|
+
`At least one <template> or <script> is required in a single file component. ${descriptor.filename}`
|
|
26737
26737
|
)
|
|
26738
26738
|
);
|
|
26739
26739
|
}
|
|
@@ -48853,7 +48853,7 @@ var __spreadValues = (a, b) => {
|
|
|
48853
48853
|
}
|
|
48854
48854
|
return a;
|
|
48855
48855
|
};
|
|
48856
|
-
const version = "3.5.0-
|
|
48856
|
+
const version = "3.5.0-rc.1";
|
|
48857
48857
|
const parseCache = parseCache$1;
|
|
48858
48858
|
const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
|
|
48859
48859
|
const walk = walk$2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-sfc",
|
|
3
|
-
"version": "3.5.0-
|
|
3
|
+
"version": "3.5.0-rc.1",
|
|
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.11",
|
|
48
48
|
"postcss": "^8.4.41",
|
|
49
49
|
"source-map-js": "^1.2.0",
|
|
50
|
-
"@vue/compiler-core": "3.5.0-
|
|
51
|
-
"@vue/compiler-
|
|
52
|
-
"@vue/shared": "3.5.0-
|
|
53
|
-
"@vue/compiler-
|
|
50
|
+
"@vue/compiler-core": "3.5.0-rc.1",
|
|
51
|
+
"@vue/compiler-dom": "3.5.0-rc.1",
|
|
52
|
+
"@vue/shared": "3.5.0-rc.1",
|
|
53
|
+
"@vue/compiler-ssr": "3.5.0-rc.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/types": "^7.25.2",
|