svelte-preprocess
svelte-preprocess copied to clipboard
fix: Adjust globalifySelector to not split selectors with parentheses.
Fixes #501
I ran into an issue where I could not use simple tailwind apply directives for dark mode and also couldn't import Daisy UI. I tracked it down to a problem with svelte-preprocess
creating :global
rules that svelte is not happy with. User https://github.com/MagDevX suggested an adjustment to globalifySelector.js
combinatorPattern
to prevent selectors with parenthesis from being split.
Update: I added a test that shows the problem and it fails in main
but passes on this branch. I ran tests and everything passed.