Nicolas Stepien
Nicolas Stepien
>CSS-in-JS is still JavaScript, right? It depends on the css-in-js lib, in our case we use linaria so it looks like this: ```tsx const myClass = css` color: red; `;...
@Anber This is still happening with `@linaria/[email protected]` and `[email protected]`, this is affecting our biggest repo. ``` > jest src/demo FAIL src/demo.test.ts ● Test suite failed to run EvalError: D:\repo\src\demo.test.ts: Cannot...
Linaria doesn't need to be transpiled anymore for tests, so I'm closing this.
@sodatea if I use Rollup with a similar set up I do not get any errors. So I'm thinking it's an issue with Vite rather than Rollup.
I should add that Vite crashes when running either `vite` or `vite build`.
@Anber would you know anything about this bug with Vite+linaria?
@Anber Mmh, I don't have another machine to confirm whether this is Windows-only 🤔 Thanks for checking though 🙏
I've looked into it more deeply, Linaria outputs code like this: ```js import "D:/repos/vite-bug/main_lquf2n.css"; ``` The path uses `/` instead of `\`, which Vite doesn't like. If I patch Vite's...
Fixed in Linaria.