wyw-in-js
wyw-in-js copied to clipboard
vite + react: PURE annotation that Rollup cannot interpret
Packages:
- wyw-in-js version: 0.5.1
- Bundler: [email protected]
- @linaria/[email protected]
Description
There is an issue with simple styled
interpolation upon vite build.
When building with Vite:
I was trying to switch from styled-components to linaria for our components library and this error is populated for every interpolation in the project. I worry that it's not just a polite warning and may lead to breaking something later.
Reproducible Demo
https://stackblitz.com/edit/vitejs-vite-gfwqu5?file=src%2FApp.tsx
$ npm run build
(There is no issue when running dev
command)