File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -645,7 +645,7 @@ exports[`SFC compile <script setup> > defineExpose() 1`] = `
645
645
"export default {
646
646
setup(__props, { expose: __expose }) {
647
647
648
- expose ({ foo: 123 })
648
+ __expose ({ foo: 123 })
649
649
650
650
return { }
651
651
}
@@ -1319,7 +1319,7 @@ exports[`SFC compile <script setup> > inlineTemplate mode > with defineExpose()
1319
1319
setup(__props, { expose: __expose }) {
1320
1320
1321
1321
const count = ref(0)
1322
- expose ({ count })
1322
+ __expose ({ count })
1323
1323
1324
1324
return () => {}
1325
1325
}
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ defineExpose({ foo: 123 })
276
276
// should generate correct setup signature
277
277
expect ( content ) . toMatch ( `setup(__props, { expose: __expose }) {` )
278
278
// should replace callee
279
- expect ( content ) . toMatch ( / \b e x p o s e \( \{ f o o : 1 2 3 \} \) / )
279
+ expect ( content ) . toMatch ( / \b _ _ e x p o s e \( \{ f o o : 1 2 3 \} \) / )
280
280
} )
281
281
282
282
test ( '<script> after <script setup> the script content not end with `\\n`' , ( ) => {
Original file line number Diff line number Diff line change @@ -1252,7 +1252,7 @@ export function compileScript(
1252
1252
s . overwrite (
1253
1253
callee . start ! + startOffset ,
1254
1254
callee . end ! + startOffset ,
1255
- 'expose '
1255
+ '__expose '
1256
1256
)
1257
1257
}
1258
1258
}
You can’t perform that action at this time.
0 commit comments