@@ -14,7 +14,8 @@ return { a }
14
14
`;
15
15
16
16
exports[`SFC analyze <script > bindings > auto name inference > do not overwrite manual name (call) 1`] = `
17
- "import { defineComponent } from 'vue'
17
+ "
18
+ import { defineComponent } from 'vue'
18
19
const __default__ = defineComponent({
19
20
name : ' Baz'
20
21
} )
@@ -30,7 +31,8 @@ return { a, defineComponent }
30
31
`;
31
32
32
33
exports[`SFC analyze <script > bindings > auto name inference > do not overwrite manual name (object) 1`] = `
33
- "const __default__ = {
34
+ "
35
+ const __default__ = {
34
36
name : ' Baz'
35
37
}
36
38
@@ -45,7 +47,8 @@ return { a }
45
47
`;
46
48
47
49
exports[`SFC compile <script setup > > <script > and <script setup > co-usage > export call expression as default 1`] = `
48
- "function fn() {
50
+ "
51
+ function fn() {
49
52
return \\" hello, world\\ " ;
50
53
}
51
54
const __default__ = fn();
@@ -63,7 +66,8 @@ return { fn }
63
66
`;
64
67
65
68
exports[`SFC compile <script setup > > <script > and <script setup > co-usage > keep original semi style 1`] = `
66
- "export default {
69
+ "
70
+ export default {
67
71
props : [' item' ],
68
72
emits : [' change' ],
69
73
setup (__props , { expose: __expose , emit: __emit }) {
@@ -535,7 +539,8 @@ return { get a() { return a }, set a(v) { a = v } }
535
539
`;
536
540
537
541
exports[`SFC compile <script setup > > async/await detection > should ignore await inside functions 1`] = `
538
- "export default {
542
+ "
543
+ export default {
539
544
setup (__props , { expose: __expose }) {
540
545
__expose();
541
546
async function foo() { await bar }
@@ -546,7 +551,8 @@ return { foo }
546
551
`;
547
552
548
553
exports[`SFC compile <script setup > > async/await detection > should ignore await inside functions 2`] = `
549
- "export default {
554
+ "
555
+ export default {
550
556
setup (__props , { expose: __expose }) {
551
557
__expose();
552
558
const foo = async () => { await bar }
@@ -557,7 +563,8 @@ return { foo }
557
563
`;
558
564
559
565
exports[`SFC compile <script setup > > async/await detection > should ignore await inside functions 3`] = `
560
- "export default {
566
+ "
567
+ export default {
561
568
setup (__props , { expose: __expose }) {
562
569
__expose();
563
570
const obj = { async method() { await bar }}
@@ -568,7 +575,8 @@ return { obj }
568
575
`;
569
576
570
577
exports[`SFC compile <script setup > > async/await detection > should ignore await inside functions 4`] = `
571
- "export default {
578
+ "
579
+ export default {
572
580
setup (__props , { expose: __expose }) {
573
581
__expose();
574
582
const cls = class Foo { async method() { await bar }}
@@ -618,7 +626,8 @@ return { a }
618
626
`;
619
627
620
628
exports[`SFC compile <script setup > > binding analysis for destructure 1`] = `
621
- "export default {
629
+ "
630
+ export default {
622
631
setup (__props , { expose: __expose }) {
623
632
__expose();
624
633
@@ -838,7 +847,9 @@ return { msg, useCssVars, ref }
838
847
`;
839
848
840
849
exports[`SFC compile <script setup > > imports > import dedupe between <script > and <script setup > 1`] = `
841
- "import { x } from './x'
850
+ "
851
+
852
+ import { x } from './x'
842
853
843
854
export default {
844
855
setup (__props , { expose: __expose }) {
@@ -902,7 +913,9 @@ return { ref }
902
913
`;
903
914
904
915
exports[`SFC compile <script setup > > imports > should support module string names syntax 1`] = `
905
- "import { \\" 😏\\ " as foo } from './foo'
916
+ "
917
+
918
+ import { \\" 😏\\ " as foo } from './foo'
906
919
907
920
export default {
908
921
setup (__props , { expose: __expose }) {
@@ -1189,7 +1202,8 @@ return (_ctx, _cache) => {
1189
1202
`;
1190
1203
1191
1204
exports[`SFC compile <script setup > > inlineTemplate mode > with defineExpose() 1`] = `
1192
- "export default {
1205
+ "
1206
+ export default {
1193
1207
setup (__props , { expose: __expose }) {
1194
1208
1195
1209
const count = ref(0)
@@ -1352,7 +1366,8 @@ return { a }
1352
1366
`;
1353
1367
1354
1368
exports[`SFC genDefaultAs > <script > + <script setup > 1`] = `
1355
- "const __default__ = { }
1369
+ "
1370
+ const __default__ = { }
1356
1371
1357
1372
const _sfc_ = /*#__PURE__*/Object.assign(__default__, {
1358
1373
setup (__props , { expose: __expose }) {
@@ -1367,7 +1382,8 @@ return { a }
1367
1382
`;
1368
1383
1369
1384
exports[`SFC genDefaultAs > <script > + <script setup > 2`] = `
1370
- "const __default__ = { }
1385
+ "
1386
+ const __default__ = { }
1371
1387
1372
1388
const _sfc_ = /*#__PURE__*/Object.assign(__default__, {
1373
1389
setup (__props , { expose: __expose }) {
0 commit comments