code-connect icon indicating copy to clipboard operation
code-connect copied to clipboard

Combine duplicate imports from the same package

Open mhladnik opened this issue 5 months ago • 1 comments

Hi, is there a way for Figma Code Connect to combine imports that come from the same path?

Right now, the generated code creates separate import lines for each component: import { RadioGroup } from "@design-system"; import { RadioButton } from "@design-system";

It would be preferable if these could be combined into a single import statement: import { RadioGroup, RadioButton } from "@design-system";

mhladnik avatar Sep 05 '25 07:09 mhladnik

I'm hitting the same issue. Eslint will fix it for us, but would still be nice to have 🙇

adbutterfield avatar Oct 09 '25 03:10 adbutterfield