@vue/compiler-sfc 3.6.0-rc.4 → 3.6.0-rc.5
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.6.0-rc.
|
|
2
|
+
* @vue/compiler-sfc v3.6.0-rc.5
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -15879,7 +15879,7 @@ function mergeSourceMaps(scriptMap, templateMap, templateLineOffset) {
|
|
|
15879
15879
|
}
|
|
15880
15880
|
//#endregion
|
|
15881
15881
|
//#region packages/compiler-sfc/src/index.ts
|
|
15882
|
-
const version = "3.6.0-rc.
|
|
15882
|
+
const version = "3.6.0-rc.5";
|
|
15883
15883
|
const parseCache = parseCache$1;
|
|
15884
15884
|
const errorMessages = {
|
|
15885
15885
|
..._vue_compiler_dom.errorMessages,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.6.0-rc.
|
|
2
|
+
* @vue/compiler-sfc v3.6.0-rc.5
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -26668,7 +26668,7 @@ function getSpecialHelper(keyName, tagName, isSVG) {
|
|
|
26668
26668
|
const setTemplateRefIdent = `_setTemplateRef`;
|
|
26669
26669
|
function genSetTemplateRef(oper, context) {
|
|
26670
26670
|
const [refValue, refKey] = genRefValue(oper.value, context);
|
|
26671
|
-
if (
|
|
26671
|
+
if (!oper.effect && !oper.refFor && oper.value.isStatic) return genSetStaticTemplateRef(oper, refValue, refKey, context);
|
|
26672
26672
|
context.needsTemplateRefSetter = true;
|
|
26673
26673
|
return [NEWLINE, ...genCall(setTemplateRefIdent, `n${oper.element}`, refValue, oper.refFor && "true", refKey)];
|
|
26674
26674
|
}
|
|
@@ -26677,13 +26677,7 @@ function genSetStaticTemplateRef(oper, refValue, refKey, context) {
|
|
|
26677
26677
|
}
|
|
26678
26678
|
function genSetTemplateRefBinding(oper, context) {
|
|
26679
26679
|
const [refValue, refKey] = genRefValue(oper.value, context);
|
|
26680
|
-
|
|
26681
|
-
if (context.inSlotBlock) context.needsTemplateRefSetter = true;
|
|
26682
|
-
return [NEWLINE, ...genCall([context.helper("setTemplateRefBinding"), "undefined"], `n${oper.element}`, ["() => ", ...refValue], ...setter || oper.refFor || refKey ? [
|
|
26683
|
-
setter,
|
|
26684
|
-
oper.refFor && "true",
|
|
26685
|
-
refKey
|
|
26686
|
-
] : [])];
|
|
26680
|
+
return [NEWLINE, ...genCall([context.helper("setTemplateRefBinding"), "undefined"], `n${oper.element}`, ["() => ", ...refValue], ...oper.refFor || refKey ? [oper.refFor && "true", refKey] : [])];
|
|
26687
26681
|
}
|
|
26688
26682
|
function genRefValue(value, context) {
|
|
26689
26683
|
if (value && context.options.inline) {
|
|
@@ -27897,7 +27891,6 @@ var CodegenContext = class {
|
|
|
27897
27891
|
this.block = ir.block;
|
|
27898
27892
|
this.bindingNames = new Set(this.options.bindingMetadata ? Object.keys(this.options.bindingMetadata) : []);
|
|
27899
27893
|
this.initNextIdMap();
|
|
27900
|
-
this.staticTemplateRefHelperCandidate = getStaticTemplateRefHelperCandidate(ir.block);
|
|
27901
27894
|
}
|
|
27902
27895
|
};
|
|
27903
27896
|
function generate(ir, options = {}) {
|
|
@@ -27949,11 +27942,6 @@ function genAssetImports({ ir }) {
|
|
|
27949
27942
|
}
|
|
27950
27943
|
return imports;
|
|
27951
27944
|
}
|
|
27952
|
-
function getStaticTemplateRefHelperCandidate(block) {
|
|
27953
|
-
if (block.operation.length !== 1) return;
|
|
27954
|
-
const operation = block.operation[0];
|
|
27955
|
-
if (operation.type === 9 && !operation.effect && !operation.refFor && operation.value.isStatic) return operation;
|
|
27956
|
-
}
|
|
27957
27945
|
//#endregion
|
|
27958
27946
|
//#region packages/compiler-vapor/src/transforms/vBind.ts
|
|
27959
27947
|
function normalizeBindShorthand(arg, context) {
|
|
@@ -43245,7 +43233,7 @@ function mergeSourceMaps(scriptMap, templateMap, templateLineOffset) {
|
|
|
43245
43233
|
//#endregion
|
|
43246
43234
|
//#region packages/compiler-sfc/src/index.ts
|
|
43247
43235
|
init_objectSpread2();
|
|
43248
|
-
const version = "3.6.0-rc.
|
|
43236
|
+
const version = "3.6.0-rc.5";
|
|
43249
43237
|
const parseCache = parseCache$1;
|
|
43250
43238
|
const errorMessages = _objectSpread2(_objectSpread2({}, errorMessages$1), DOMErrorMessages);
|
|
43251
43239
|
const walk = walk$2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-sfc",
|
|
3
|
-
"version": "3.6.0-rc.
|
|
3
|
+
"version": "3.6.0-rc.5",
|
|
4
4
|
"description": "@vue/compiler-sfc",
|
|
5
5
|
"main": "dist/compiler-sfc.cjs.js",
|
|
6
6
|
"module": "dist/compiler-sfc.esm-browser.js",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"magic-string": "^0.30.21",
|
|
48
48
|
"postcss": "^8.5.19",
|
|
49
49
|
"source-map-js": "^1.2.1",
|
|
50
|
-
"@vue/compiler-
|
|
51
|
-
"@vue/compiler-
|
|
52
|
-
"@vue/compiler-ssr": "3.6.0-rc.
|
|
53
|
-
"@vue/compiler-vapor": "3.6.0-rc.
|
|
54
|
-
"@vue/shared": "3.6.0-rc.
|
|
50
|
+
"@vue/compiler-core": "3.6.0-rc.5",
|
|
51
|
+
"@vue/compiler-dom": "3.6.0-rc.5",
|
|
52
|
+
"@vue/compiler-ssr": "3.6.0-rc.5",
|
|
53
|
+
"@vue/compiler-vapor": "3.6.0-rc.5",
|
|
54
|
+
"@vue/shared": "3.6.0-rc.5"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@babel/types": "^7.29.8",
|