I have the same issue. Figma is only watching if the manifest.json file changed. So if you want to hotreload the plugin just change the manifest file or make sure the file gets updated somehow every time your build tiggers so the changed date and time of the file is new and Figma will reload the plugin.
Hi, I don’t mean to highjack this thread but I’m the author of a library that makes developing Figma plugins easier. One of the main features is it uses a local development server instead of re-building the file with each file change. I think this will solve your issue as it doesn’t rely on Figma to reload the plugin. One caveat is that when you publish your plugin, you must create a build before doing so. But it’s a small price to pay for a better developer experience.
Cool shit! This really solved my urgent problem. I spent most of the day just implementing “building Figma plugins with vitejs” and then encountered the hot reload issue. Just when I was about to give up, I saw your post. Plugma really perfectly solved my problem.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.