Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 06ad728

Browse files
committed
fix: add JSLongComment test case, fix #112
1 parent eb9c5b2 commit 06ad728

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

Diff for: test/__snapshots__/transform.test.ts.snap

+20
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,26 @@ export default __sfc_main;
306306
"
307307
`;
308308
309+
exports[`transform > fixtures > test/fixtures/JSLongComment.vue 1`] = `
310+
"<script lang=\\"ts\\">
311+
const __sfc_main = {};
312+
313+
__sfc_main.setup = (__props, __ctx) => {
314+
const a = 1; ////////////////
315+
316+
return {
317+
a
318+
};
319+
};
320+
321+
export default __sfc_main;
322+
</script>
323+
<template>
324+
<div>{{ a }}</div>
325+
</template>
326+
"
327+
`;
328+
309329
exports[`transform > fixtures > test/fixtures/Macros.vue 1`] = `
310330
"<template>
311331
<div @click=\\"emit(props.msg)\\">{{ msg }}</div>

Diff for: test/fixtures/JSLongComment.vue

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script setup lang="ts">
2+
const a = 1
3+
////////////////
4+
</script>
5+
<template>
6+
<div>{{ a }}</div>
7+
</template>

0 commit comments

Comments
 (0)