A template for using Esri's JS API with modern module import syntax, powered by rollup. Inspired by this blog by Rene Rubalcava.
See it live here.
To build for local development:
Note: There seems to be an issue with the livereload rollup plugin that prevents the browser from reloading automatically.
npm run start
To build for production:
npm run build
To deploy with GitHub pages:
npm run deploy