We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi.
It seems like Windi stops working when using findIndex in classes with SvelteKit.
Only file in routes is Index.svelte. It contains:
<p class="a {[0].findIndex(i => i === 0) ? 'b' : 'c'}" /> <p class="text-red-500">No work</p> <style windi:preflights:global windi:safelist:global> </style>
The first line breaks any attempt at using Windi after that. This means that "No work" will not be in red text color as expected.
Observations:
I reckon it has something to do with the type of function that findIndex is.
REPO: https://github.com/Grymse/windi-css-sveltekit-break
System: Windows 11 Pro Preview: Build 22523.1000 Ram: 16,0 GB Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz Node v16.13.0 npm v8.3.0 vite: 2.7.10 rollup: 2.62.0 windicss: 3.2.1 Windicss-runtime-dom: 3.0.0 svelte-windicss-preprocess: 4.2.5 postcss: 8.4.5 svelte-kit: 1.0.0-next.212 vite-plugin-svelte: 1.0.0-next.33
npm
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Hi.
It seems like Windi stops working when using findIndex in classes with SvelteKit.
Only file in routes is Index.svelte. It contains:
The first line breaks any attempt at using Windi after that. This means that "No work" will not be in red text color as expected.
Observations:
I reckon it has something to do with the type of function that findIndex is.
REPO: https://github.com/Grymse/windi-css-sveltekit-break
System Info
Used Package Manager
npm
The text was updated successfully, but these errors were encountered: