-
-
Notifications
You must be signed in to change notification settings - Fork 956
Closed as not planned
Description
UnoCSS version
65.4.0
Describe the bug
Astro build becomes extremely slow when
- a MDX file contains:
- heading
- TypeScript, HTML or JavaScript codeblock with bracketed content
<content> - footnote
transformerAttributifyJsxis loaded
The issue starts from v0.60.1, previous versions does't have the issue.
Reproduction
- Add MDX and UnoCSS integrations in
astro.config.ts - Load
transformerAttributifyJsxinunocss.config.ts - Add a MDX file to
src/pageswith, for example (remove "\"):
# Heading
\```html
<anything>
\```
[^footnote]
[^footnote]: Content- Run
astro buildand it won't finish
Minimal reproduction in StackBlitz, https://stackblitz.com/edit/withastro-astro-pgoyxnq9?file=src%2Fpages%2Findex.mdx
Run pnpm install and pnpm astro build to build.
System Info
No response
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.