Hey y’all 👋
Is there a way to split a widget’s code into multiple files? I know Figma won’t accept import
statements in widget code, but I was wondering if I there was a special Typescript or vite/webpack/etc. configuration that managed to export a single, FigJam-friendly file.
My widget’s UI is quite complex, and it’s getting unwieldy to have the mini design system, re-usable components, state logic and iframe communication all in a single file. Plus, I was hoping this would open the door to using npm packages 😊
Thank you for your help 'n attention o/