]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix codegen error due to scopeId deprecation change
authorEvan You <yyx990803@gmail.com>
Fri, 16 Jul 2021 16:24:30 +0000 (12:24 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 16 Jul 2021 18:30:49 +0000 (14:30 -0400)
packages/compiler-core/__tests__/__snapshots__/scopeId.spec.ts.snap
packages/compiler-core/src/codegen.ts
packages/compiler-ssr/__tests__/ssrScopeId.spec.ts

index c8df4217c3c0f24419c5b7d1413f2285c70cc65f..5372c5dbd8150a9fb92c4f2fb34d3329166eef94 100644 (file)
@@ -14,7 +14,7 @@ export function render(_ctx, _cache) {
     _createTextVNode(_toDisplayString(_ctx.foo), 1 /* TEXT */),
     _hoisted_2
   ]))
-})"
+}"
 `;
 
 exports[`scopeId compiler support should wrap default slot 1`] = `
@@ -29,7 +29,7 @@ export function render(_ctx, _cache) {
     ]),
     _: 1 /* STABLE */
   }))
-})"
+}"
 `;
 
 exports[`scopeId compiler support should wrap dynamic slots 1`] = `
@@ -56,7 +56,7 @@ export function render(_ctx, _cache) {
       }
     })
   ]), 1024 /* DYNAMIC_SLOTS */))
-})"
+}"
 `;
 
 exports[`scopeId compiler support should wrap named slots 1`] = `
@@ -74,5 +74,5 @@ export function render(_ctx, _cache) {
     ]),
     _: 1 /* STABLE */
   }))
-})"
+}"
 `;
index 28d30ddbf37fcf1ff9bf9a565f40daee99443b40..f37e72951464ccc4b1980ee418c258ffb7b6562f 100644 (file)
@@ -304,10 +304,6 @@ export function generate(
   deindent()
   push(`}`)
 
-  if (genScopeId && !isSetupInlined) {
-    push(`)`)
-  }
-
   return {
     ast,
     code: context.code,
index cc1ade3594bf8710163c930f0233b8b9a02a9d31..09ff183ef8f7ac59149a81f44628dd583839e716 100644 (file)
@@ -15,7 +15,7 @@ describe('ssr: scopeId', () => {
 
       export function ssrRender(_ctx, _push, _parent, _attrs) {
         _push(\`<div\${_ssrRenderAttrs(_attrs)} data-v-xxxxxxx><span data-v-xxxxxxx>hello</span></div>\`)
-      })"
+      }"
     `)
   })
 
@@ -45,7 +45,7 @@ describe('ssr: scopeId', () => {
           }),
           _: 1 /* STABLE */
         }, _parent))
-      })"
+      }"
     `)
   })
 
@@ -74,7 +74,7 @@ describe('ssr: scopeId', () => {
           }),
           _: 1 /* STABLE */
         }, _parent))
-      })"
+      }"
     `)
   })
 
@@ -122,7 +122,7 @@ describe('ssr: scopeId', () => {
           }),
           _: 1 /* STABLE */
         }, _parent))
-      })"
+      }"
     `)
   })
 })