@vue/compiler-ssr 3.2.2 → 3.2.6
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 +3 -1
- package/package.json +3 -3
package/dist/compiler-ssr.cjs.js
CHANGED
|
@@ -15,6 +15,7 @@ const SSR_RENDER_ATTRS = Symbol(`ssrRenderAttrs`);
|
|
|
15
15
|
const SSR_RENDER_ATTR = Symbol(`ssrRenderAttr`);
|
|
16
16
|
const SSR_RENDER_DYNAMIC_ATTR = Symbol(`ssrRenderDynamicAttr`);
|
|
17
17
|
const SSR_RENDER_LIST = Symbol(`ssrRenderList`);
|
|
18
|
+
const SSR_INCLUDE_BOOLEAN_ATTR = Symbol(`ssrIncludeBooleanAttr`);
|
|
18
19
|
const SSR_LOOSE_EQUAL = Symbol(`ssrLooseEqual`);
|
|
19
20
|
const SSR_LOOSE_CONTAIN = Symbol(`ssrLooseContain`);
|
|
20
21
|
const SSR_RENDER_DYNAMIC_MODEL = Symbol(`ssrRenderDynamicModel`);
|
|
@@ -32,6 +33,7 @@ const ssrHelpers = {
|
|
|
32
33
|
[SSR_RENDER_ATTR]: `ssrRenderAttr`,
|
|
33
34
|
[SSR_RENDER_DYNAMIC_ATTR]: `ssrRenderDynamicAttr`,
|
|
34
35
|
[SSR_RENDER_LIST]: `ssrRenderList`,
|
|
36
|
+
[SSR_INCLUDE_BOOLEAN_ATTR]: `ssrIncludeBooleanAttr`,
|
|
35
37
|
[SSR_LOOSE_EQUAL]: `ssrLooseEqual`,
|
|
36
38
|
[SSR_LOOSE_CONTAIN]: `ssrLooseContain`,
|
|
37
39
|
[SSR_RENDER_DYNAMIC_MODEL]: `ssrRenderDynamicModel`,
|
|
@@ -617,7 +619,7 @@ const ssrTransformElement = (node, context) => {
|
|
|
617
619
|
? attrName // preserve raw name on custom elements
|
|
618
620
|
: shared.propsToAttrMap[attrName] || attrName.toLowerCase();
|
|
619
621
|
if (shared.isBooleanAttr(attrName)) {
|
|
620
|
-
openTag.push(compilerDom.createConditionalExpression(value, compilerDom.createSimpleExpression(' ' + attrName, true), compilerDom.createSimpleExpression('', true), false /* no newline */));
|
|
622
|
+
openTag.push(compilerDom.createConditionalExpression(compilerDom.createCallExpression(context.helper(SSR_INCLUDE_BOOLEAN_ATTR), [value]), compilerDom.createSimpleExpression(' ' + attrName, true), compilerDom.createSimpleExpression('', true), false /* no newline */));
|
|
621
623
|
}
|
|
622
624
|
else if (shared.isSSRSafeAttrName(attrName)) {
|
|
623
625
|
openTag.push(compilerDom.createCallExpression(context.helper(SSR_RENDER_ATTR), [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-ssr",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.6",
|
|
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/vue-next/tree/master/packages/compiler-ssr#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vue/shared": "3.2.
|
|
32
|
-
"@vue/compiler-dom": "3.2.
|
|
31
|
+
"@vue/shared": "3.2.6",
|
|
32
|
+
"@vue/compiler-dom": "3.2.6"
|
|
33
33
|
}
|
|
34
34
|
}
|