Plugma is very chatty when it's running #73
Replies: 2 comments 2 replies
-
|
Hi @DigitalNaut . This is expected when running in dev mode. Plugma makes two requests in this mode:
If you don't need to use the dev server you can develop your plugin using Any questions, comments or thoughts, just let me know. |
Beta Was this translation helpful? Give feedback.
-
|
Also just to note, the reason other toolkits don't have this with Vite is because they bundle the entire plugin UI each time a change is made. However Plugma only updates the necessary parts of the UI with WebSockets via Vite's dev server. The If it's annoying to see error messages in the console when the plugin isn't running, you can hush these by disabling network errors in Chrome's developer tools. Unfortunately there's no way for me to suppress them but this is normal in any Vite app. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've noticed in the Network tab that the plugin is constantly polling the dev server for the same HTML file when it's running:
Here's a sample using a blank project from
npm create plugma@latest:I compared it with both the base plugin template that Figma creates and iGoodie's figma-plugin-react-vite , but neither of those has any constant background activity.
This doesn't happen in a build, so I'm not worried about it. I think this is related to web sockets being used to monitor file changes, but does anyone know what's really going on? Is this normal?
Beta Was this translation helpful? Give feedback.
All reactions