I formatted the following file, which cleared the entirety of the component script and layout. It seems to have been caused by the "'" in the third line.
Input file index.astro:
---
const a = 1;
const b = "'";
const c = 2;
---
<html></html>
Output file:
---
---
The following input files also result in the same empty output file:
v0.5.1 is released and it fixed this problem. Feel free to open new issues if you find bugs, also don't forget to give it a star and recommend this project to others.
I formatted the following file, which cleared the entirety of the component script and layout. It seems to have been caused by the
"'"
in the third line.Input file
index.astro
:Output file:
The following input files also result in the same empty output file:
Here is the
dprint.json
that was used:The same behavior occurred with the TypeScript plugin added.