DEV Community

Discussion on: Monaco Editor + Svelte Kit

Collapse
 
alexvdvalk profile image
Alex van der Valk

I wrap my on onMount function with:

if (browser) {
onMount...
}

It usually helps with compile errors.

Is there any way to optimize this further? The compiled bundle is over 2MB.