Closed okikio closed 2 years ago
cc @natemoo-re
So I did look into this a bit. Looks like esbuild
is stripping out comments but leaving the {}
intact which is invalid JSX. Still thinking through a fix... esbuild
doesn't allow comment preservation AFAICT.
This seems like a bug in esbuild
Just picked this back up and it seems to be working, not sure what was going on in the older version.
https://stackblitz.com/edit/github-qfawez?file=src%2Fpages%2Findex.mdx
What version of
astro
are you using?^1.0.0-beta.61
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Linux
Describe the Bug
Using this comment syntax causes bugs,
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-5mawuq?file=src/pages/index.mdx
Participation