Regression: wyw-in-js can't handle @radix-ui/react-tooltip side-effectful import #70
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: rollup 🗞️
Issue is related to rollup bundler
needs: complete repro 🖥️
Issue need to have complete repro provided
A simple vite project (no react, no babel presets, no nothing) (hey I even could get a minimal repro)
The magic happens here:
import "@radix-ui/react-tooltip"
is also sufficient.NOTE: If I were to do something like this:
The bug would not manifest. It's only when I import the entire module that it does.
The import gets tree-shaken away.
If I were to miss the
<Tooltip />
part, the bug would be back.I've marked this as a regression, since the same exact project with
@linaria/vite
(tagged under git tag of@linaria/vite
in the original repro repo) doesn't exhibit the same issue.The text was updated successfully, but these errors were encountered: