Language | Framework | From | Strategy | Bundler |
---|---|---|---|---|
JavaScript | None | Local | ESM | Bundler |
This repo demonstrates how to use the @arcgis/core
ES modules with rollup.
How lo load assets from the CDN instead of local: ArcGIS API for JavaScript: Building Apps with ES Modules (hax) - min 34:21
Step 1 - Run npm install
and then start adding modules
Step 2 Configure CSS. Here's a basic HTML example:
index.html
<link rel="stylesheet" href="https://js.arcgis.com/4.20/@arcgis/core/assets/esri/themes/light/main.css>
For additional information, see the Build with ES modules Guide topic in the SDK.
For a list of all available npm
commands see the scripts in package.json
.
The original code from github.com/Esri/jsapi-resources/tree/master/esm-samples/rollup.
This starter apps are maintained by the community. If you find something broken or outdated and the code from the starter app comes from another repository please open the issue there, if it doesn't feel free to open an issue on this repo.
Note that frameworks and bundlers are outside of the scope of support from the Esri Technical Support. In any case, you can use the issues repositories related to each starter app to interact with the community for support.