<script
lang="ts"
setup
>
/** This code will not get parsed */
<script>
solution
Unfortunately because the regex works line-by-line, it's not possible to simply fix the script regex. The change needed to fix this bug requires a more complicated change to how script extraction works.
Similar to #159
Works properly
Does not work
Common tools like prettier with singleAttributePerLine will format a Vue SFC like this.
solution
Unfortunately because the regex works line-by-line, it's not possible to simply fix the script regex. The change needed to fix this bug requires a more complicated change to how script extraction works.