refactor: remove deprecated scopeId codegen
BREAKING CHANGE: Output of SFC using `<style scoped>` generated by 3.2+ will be incompatible w/ runtime <3.2.
This commit is contained in:
@@ -12,9 +12,8 @@ describe('ssr: scopeId', () => {
|
||||
).toMatchInlineSnapshot(`
|
||||
"import { withScopeId as _withScopeId } from \\"vue\\"
|
||||
import { ssrRenderAttrs as _ssrRenderAttrs } from \\"@vue/server-renderer\\"
|
||||
const _withId = /*#__PURE__*/_withScopeId(\\"data-v-xxxxxxx\\")
|
||||
|
||||
export const ssrRender = /*#__PURE__*/_withId((_ctx, _push, _parent, _attrs) => {
|
||||
export function ssrRender(_ctx, _push, _parent, _attrs) {
|
||||
_push(\`<div\${_ssrRenderAttrs(_attrs)} data-v-xxxxxxx><span data-v-xxxxxxx>hello</span></div>\`)
|
||||
})"
|
||||
`)
|
||||
@@ -30,9 +29,8 @@ describe('ssr: scopeId', () => {
|
||||
).toMatchInlineSnapshot(`
|
||||
"import { resolveComponent as _resolveComponent, withCtx as _withCtx, createTextVNode as _createTextVNode, withScopeId as _withScopeId } from \\"vue\\"
|
||||
import { ssrRenderComponent as _ssrRenderComponent } from \\"@vue/server-renderer\\"
|
||||
const _withId = /*#__PURE__*/_withScopeId(\\"data-v-xxxxxxx\\")
|
||||
|
||||
export const ssrRender = /*#__PURE__*/_withId((_ctx, _push, _parent, _attrs) => {
|
||||
export function ssrRender(_ctx, _push, _parent, _attrs) {
|
||||
const _component_foo = _resolveComponent(\\"foo\\")
|
||||
|
||||
_push(_ssrRenderComponent(_component_foo, _attrs, {
|
||||
@@ -60,9 +58,8 @@ describe('ssr: scopeId', () => {
|
||||
).toMatchInlineSnapshot(`
|
||||
"import { resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, withScopeId as _withScopeId } from \\"vue\\"
|
||||
import { ssrRenderComponent as _ssrRenderComponent } from \\"@vue/server-renderer\\"
|
||||
const _withId = /*#__PURE__*/_withScopeId(\\"data-v-xxxxxxx\\")
|
||||
|
||||
export const ssrRender = /*#__PURE__*/_withId((_ctx, _push, _parent, _attrs) => {
|
||||
export function ssrRender(_ctx, _push, _parent, _attrs) {
|
||||
const _component_foo = _resolveComponent(\\"foo\\")
|
||||
|
||||
_push(_ssrRenderComponent(_component_foo, _attrs, {
|
||||
@@ -90,9 +87,8 @@ describe('ssr: scopeId', () => {
|
||||
).toMatchInlineSnapshot(`
|
||||
"import { resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, withScopeId as _withScopeId } from \\"vue\\"
|
||||
import { ssrRenderComponent as _ssrRenderComponent } from \\"@vue/server-renderer\\"
|
||||
const _withId = /*#__PURE__*/_withScopeId(\\"data-v-xxxxxxx\\")
|
||||
|
||||
export const ssrRender = /*#__PURE__*/_withId((_ctx, _push, _parent, _attrs) => {
|
||||
export function ssrRender(_ctx, _push, _parent, _attrs) {
|
||||
const _component_foo = _resolveComponent(\\"foo\\")
|
||||
const _component_bar = _resolveComponent(\\"bar\\")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user