the-dataface / figma-plugin-svelte-vite

Build a Figma plugin using Svelte + Vite + TypeScript
MIT License
11 stars 1 forks source link

feat: HMR in figma via concurrent threads #5

Closed sawyerclick closed 1 year ago

sawyerclick commented 1 year ago

Closes #4. Auto-restart Figma's plugin instance whenever code is changed. This uses [concurrently](https://www.npmjs.com/package/concurrently#usage) to run vite build --watch on both UI and plugin code, spitting out updates as they happen. Then a custom plugin in both Vite configurations will update the manifest, thereby updating the Figma plugin instance