Skip to content

Commit 8482455

Browse files
committed
fix: allow empty code
1 parent 3456cf5 commit 8482455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const VueJsx: UnpluginInstance<Options | undefined, false> = createUnplugin(
1717
},
1818
handler(code, id) {
1919
const result = transformVueJsx(code, id, options)
20-
if (!result?.code) return
20+
if (!result) return
2121
return {
2222
code: result.code,
2323
map: result.map as any,

0 commit comments

Comments
 (0)