strapi-plugin-schemas-to-ts icon indicating copy to clipboard operation
strapi-plugin-schemas-to-ts copied to clipboard

Types are rebuilding on every debugger reload

Open gregg-cbs opened this issue 1 year ago • 2 comments

Hey Mancku, I have noticed that my dev server is rebuilding types every time it restarts. Its worth noting that I run strapi in debugger mode which could have something to do with it.

If i restart my debugger I see a full rebuild happens everytime and my terminal is being spammed by logs from this package - any thoughts?

image

To be fair, even strapi does quite a lot of rebuilding on debugger restarts.

gregg-cbs avatar Mar 25 '24 14:03 gregg-cbs

Hi @gregg-cbs yes, it's something I couldn't figure out (how to avoid the plugin from being fired every time) but if you scroll down after the "Converting schema..." sentences, you'll find that files are not being modified every time, just when there are changes. When a file is not being modified, you'll see an "is up to date" message

mancku avatar Mar 25 '24 15:03 mancku

Yeah its probably a webpack level thing and i think you will be blocked by that when working from within strapi. Looks like their diffing is not so great either.

gregg-cbs avatar Mar 25 '24 19:03 gregg-cbs