I inherited a web application that uses the Maps Javascript SDK (4.30 currently, will hopefully upgrade once I can get the thing into a usable state again).
The development experience is pretty frustrating as I cannot use Vite's HMR feature as any change triggers a full page reload. The page load takes nearly 90 seconds, mostly due to what appears to be the arcgis core and calcite components being compiled every single time, and it's really frustrating. On an adjacent app we have in our production environment, it is loading the SDK off the server itself, which is far slower than our older version which loads it from the CDN (but it just plain javascript).
Are there any samples that use typescript + vite together that load the library from CDN? I would love to not have to have it compile over and over again and take 30+ seconds to load on our production site. I see examples for typescript, I see examples for vite, but I haven't found anything that actually works for vite + typescript and the CDN. I set the script in the header on the initial page, don't configure assets path, but it still loads from the server.