script-setup: String with "export default { ... }" causes compilation error if lang is "ts"
Version
3.2.16
Reproduction link
Steps to reproduce
- See the
exportOnNewLineString
- See the
exportOnOneLineString
variable for an example of when usingexport default
does not break
What is expected?
I expect these strings to not cause a compilation error. It would be fairly common to have strings like these on a documentation page.
What is actually happening?
The compiler fails with the error:
SyntaxError: Unexpected token, expected "," (22:12)
Note: It only fails when using lang="ts"
with setup