@vue/compiler-ssr 3.3.0-alpha.8 → 3.3.0-beta.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-ssr.cjs.js +12 -12
- package/package.json +3 -3
package/dist/compiler-ssr.cjs.js
CHANGED
|
@@ -161,16 +161,16 @@ function createSSRCompilerError(code, loc) {
|
|
|
161
161
|
return compilerDom.createCompilerError(code, loc, SSRErrorMessages);
|
|
162
162
|
}
|
|
163
163
|
const SSRErrorMessages = {
|
|
164
|
-
[
|
|
165
|
-
[
|
|
166
|
-
[
|
|
164
|
+
[65]: `Unsafe attribute name for SSR.`,
|
|
165
|
+
[66]: `Missing the 'to' prop on teleport element.`,
|
|
166
|
+
[67]: `Invalid AST node during SSR transform.`
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
function ssrProcessTeleport(node, context) {
|
|
170
170
|
const targetProp = compilerDom.findProp(node, "to");
|
|
171
171
|
if (!targetProp) {
|
|
172
172
|
context.onError(
|
|
173
|
-
createSSRCompilerError(
|
|
173
|
+
createSSRCompilerError(66, node.loc)
|
|
174
174
|
);
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
@@ -183,7 +183,7 @@ function ssrProcessTeleport(node, context) {
|
|
|
183
183
|
if (!target) {
|
|
184
184
|
context.onError(
|
|
185
185
|
createSSRCompilerError(
|
|
186
|
-
|
|
186
|
+
66,
|
|
187
187
|
targetProp.loc
|
|
188
188
|
)
|
|
189
189
|
);
|
|
@@ -437,7 +437,7 @@ const ssrTransformElement = (node, context) => {
|
|
|
437
437
|
} else {
|
|
438
438
|
context.onError(
|
|
439
439
|
createSSRCompilerError(
|
|
440
|
-
|
|
440
|
+
65,
|
|
441
441
|
key.loc
|
|
442
442
|
)
|
|
443
443
|
);
|
|
@@ -939,7 +939,7 @@ function processChildren(parent, context, asFragment = false, disableNestedFragm
|
|
|
939
939
|
default:
|
|
940
940
|
context.onError(
|
|
941
941
|
createSSRCompilerError(
|
|
942
|
-
|
|
942
|
+
67,
|
|
943
943
|
child.loc
|
|
944
944
|
)
|
|
945
945
|
);
|
|
@@ -972,7 +972,7 @@ function processChildren(parent, context, asFragment = false, disableNestedFragm
|
|
|
972
972
|
default:
|
|
973
973
|
context.onError(
|
|
974
974
|
createSSRCompilerError(
|
|
975
|
-
|
|
975
|
+
67,
|
|
976
976
|
child.loc
|
|
977
977
|
)
|
|
978
978
|
);
|
|
@@ -997,7 +997,7 @@ const ssrTransformModel = (dir, node, context) => {
|
|
|
997
997
|
if (value) {
|
|
998
998
|
context.onError(
|
|
999
999
|
compilerDom.createDOMCompilerError(
|
|
1000
|
-
|
|
1000
|
+
60,
|
|
1001
1001
|
value.loc
|
|
1002
1002
|
)
|
|
1003
1003
|
);
|
|
@@ -1066,7 +1066,7 @@ const ssrTransformModel = (dir, node, context) => {
|
|
|
1066
1066
|
case "file":
|
|
1067
1067
|
context.onError(
|
|
1068
1068
|
compilerDom.createDOMCompilerError(
|
|
1069
|
-
|
|
1069
|
+
59,
|
|
1070
1070
|
dir.loc
|
|
1071
1071
|
)
|
|
1072
1072
|
);
|
|
@@ -1087,7 +1087,7 @@ const ssrTransformModel = (dir, node, context) => {
|
|
|
1087
1087
|
} else if (node.tag === "select") ; else {
|
|
1088
1088
|
context.onError(
|
|
1089
1089
|
compilerDom.createDOMCompilerError(
|
|
1090
|
-
|
|
1090
|
+
57,
|
|
1091
1091
|
dir.loc
|
|
1092
1092
|
)
|
|
1093
1093
|
);
|
|
@@ -1105,7 +1105,7 @@ function findValueBinding(node) {
|
|
|
1105
1105
|
const ssrTransformShow = (dir, node, context) => {
|
|
1106
1106
|
if (!dir.exp) {
|
|
1107
1107
|
context.onError(
|
|
1108
|
-
compilerDom.createDOMCompilerError(
|
|
1108
|
+
compilerDom.createDOMCompilerError(61)
|
|
1109
1109
|
);
|
|
1110
1110
|
}
|
|
1111
1111
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-ssr",
|
|
3
|
-
"version": "3.3.0-
|
|
3
|
+
"version": "3.3.0-beta.1",
|
|
4
4
|
"description": "@vue/compiler-ssr",
|
|
5
5
|
"main": "dist/compiler-ssr.cjs.js",
|
|
6
6
|
"types": "dist/compiler-ssr.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-ssr#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vue/shared": "3.3.0-
|
|
32
|
-
"@vue/compiler-dom": "3.3.0-
|
|
31
|
+
"@vue/shared": "3.3.0-beta.1",
|
|
32
|
+
"@vue/compiler-dom": "3.3.0-beta.1"
|
|
33
33
|
}
|
|
34
34
|
}
|