I've been following this guide to deploy a custom build of the JS API. I've got it working, but I don't really understand what is happening. The guide says the config.ts file configures the application to use the workers of the ArcGIS API for JavaScript from the cdn. Can I not locally host these files and serve them myself?
At the moment no. webpack does not handle building bundles for workers as well as we need it to at the moment, so we currently need to load the workers via the CDN. We are working towards some viable solutions to make the easier in the future.