Skip to content

Commit 21babbd

Browse files
committed
fix: transform error
1 parent a8bc7db commit 21babbd

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

playground/src/App.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ function hivue () {
1717
1818
const a = "1232133"
1919
const b = "1232133"
20+
21+
22+
23+
console.log("🚀 ~ file: App.vue:20 ~ b:", b)
2024
console.log(a,b)
2125
</script>
2226

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ function VitePluginTurboConsole(): PluginOption {
4242
column,
4343
})
4444

45-
const argsName = magicString.slice(args[0].start, args[args.length - 1].end).toString().replaceAll('`', '').replaceAll('\n', '')
45+
const argsName = magicString.slice(args[0].start, args[args.length - 1].end).toString()
46+
.replaceAll('`', '')
47+
.replaceAll('\n', '')
48+
.replaceAll('\"', '')
4649

4750
const argumentStart = args[0].start
4851
magicString.appendLeft(

0 commit comments

Comments
 (0)