svelte-preprocess icon indicating copy to clipboard operation
svelte-preprocess copied to clipboard

fix: Adjust globalifySelector to not split selectors with parentheses.

Open gregschmit opened this issue 9 months ago • 1 comments

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.

gregschmit avatar May 09 '24 04:05 gregschmit

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.

gregschmit avatar May 09 '24 04:05 gregschmit