wyw-in-js icon indicating copy to clipboard operation
wyw-in-js copied to clipboard

vite + react: PURE annotation that Rollup cannot interpret

Open BPreisner opened this issue 10 months ago • 0 comments

Packages:

Description

There is an issue with simple styled interpolation upon vite build.

image

When building with Vite:

image

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)

BPreisner avatar Apr 19 '24 09:04 BPreisner