Is it possible to only rebuild/reload the client code in sapper when a svelte component is modified

139 views Asked by At

We have a fairly large project built in sapper/svelte. In dev when a file changes it recompiles both the client and server even though I have only modified a single svelte component.

This was fine when the project was small but now changes take around 30 seconds for each reload and a bunch of redundant processes are executed on server startup (data layer initialization, connection to many IoT devices, etc). It is proving to be a bit of a bottleneck for us as the project has grown.

Is it possible to have rollup only rebuild and reload the client code when a svelte component has changed and leave the server as-is in a running state?

0

There are 0 answers