chore: fix snapshots

This commit is contained in:
Evan You 2022-05-13 15:45:26 +08:00
parent be6a0bff98
commit 31c0bb355a

View File

@ -80,7 +80,8 @@ return { n, x }
exports[`SFC compile <script setup> <script> and <script setup> co-usage script setup first 1`] = ` exports[`SFC compile <script setup> <script> and <script setup> co-usage script setup first 1`] = `
"export const n = 1 "export const n = 1
const __default__ = {} const __default__ = {}
import { x } from './x'
import { x } from './x'
export default /*#__PURE__*/Object.assign(__default__, { export default /*#__PURE__*/Object.assign(__default__, {
setup(__props, { expose }) { setup(__props, { expose }) {
@ -100,7 +101,8 @@ exports[`SFC compile <script setup> <script> and <script setup> co-usage script
const __default__ = { const __default__ = {
name: \\"test\\" name: \\"test\\"
} }
import { x } from './x'
import { x } from './x'
export default /*#__PURE__*/_defineComponent({ export default /*#__PURE__*/_defineComponent({
...__default__, ...__default__,
@ -121,6 +123,7 @@ exports[`SFC compile <script setup> <script> and <script setup> co-usage script
const __default__ = def const __default__ = def
import { x } from './x' import { x } from './x'
export default /*#__PURE__*/Object.assign(__default__, { export default /*#__PURE__*/Object.assign(__default__, {
@ -1250,7 +1253,8 @@ exports[`SFC compile <script setup> should expose top level declarations 1`] = `
const bb = 2 const bb = 2
function cc() {} function cc() {}
class dd {} class dd {}
import { x } from './x'
import { x } from './x'
export default { export default {
setup(__props, { expose }) { setup(__props, { expose }) {