Here is a CodeSandbox sample showing how to use the ArcGIS API for JavaScript together with the Vite bundler.
Vite
- This post discusses some of the differences between AMD and ESM, and includes a hands-on tutorial to help you build your first ESM project with Vite and the ArcGIS API for JavaScript.
- Vite is a rapid development tool for modern web projects. It focuses on speed and performance by improving the development experience. Check out these starters for building map applications with Vite.