Linaria shaker shaking exported value with exports
#804
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
needs: complete repro 🖥️
Issue need to have complete repro provided
needs: triage 🏷
Issue needs to be checked and prioritized
Environment
Description
We use @linaria/babel-preset & @linaria/shaker for our CSS-in-JS in Fluent UI. Please check out the reproducible demo on stackblitz. for code examples.
One of the Typescript targets we build is common-js. It seems that Linaria cannot handle reuse of exported functions with
exports
because they are getting shaken by the shakerIt seems that Linaria is shaking the exported function and the final result is smth like this:
Reproducible Demo
https://stackblitz.com/edit/node-ptrjmt
The text was updated successfully, but these errors were encountered: