Good afternoon,
I have made quite a few ArcGIS API for JavaScript, OpenLayers, Leaflet apps before and I was always happy with their output size (often few hundred kB, rarely above 1 MB).
A week ago I was "forced" to work with `ArcGIS Maps SDK for JavaScript` using ESM modules.
All I used was just:
import Basemap from '@arcgis/core/Basemap.js';
import Map from '@arcgis/core/Map.js';
import MapView from '@arcgis/core/views/MapView.js';
import TileLayer from '@arcgis/core/layers/TileLayer.js';
import * as intl from '@arcgis/core/intl.js';
I made app build with Vite.. And I see that app is about ~ 6-7 MBs. Why is it sooo big? It is just a simple app which has a simple map div with TileLayer...
Is this a new norm for ESRI web apps to weigh so much? Are there any techniques to reduce this weight, to shake unnecessary stuff?
All I could find was YT video "Quick look at custom builds with ArcGIS JSAPI" by Rene Rubalcava, but it doesn't help...