-
-
Notifications
You must be signed in to change notification settings - Fork 956
Open
Description
UnoCSS version
0.63.4
Describe the bug
Running transformerAttributifyJsx with solid-sonner produces the following error:
[vite] Pre-transform error: /Users/_/Desktop/ui/node_modules/.pnpm/[email protected][email protected]/node_modules/solid-sonner/dist/dev.jsx: Unexpected token, expected "," (440:58)
438 | return;
439 | }
> 440 | toastRef?.style.setProperty("--swipe-amount", "0px=""");
| ^
441 | setSwiping(false);
442 | }}
443 | onPointerMove={(event) => {I checked solid-sonner/dist/dev.jsx, transformerAttributifyJsx may be converting this code
toastRef?.style.setProperty("--swipe-amount", "0px");into
toastRef?.style.setProperty("--swipe-amount", "0px=""");After uninstalling transformerAttributifyJsx, vite was successfully compiled.
Reproduction
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.
Metadata
Metadata
Assignees
Labels
No labels