That would be awesome.
From the very little I know about ES6 module native support in browser, it works very well when there isn’t too many dependencies, which I assume is the case of Stimulus!
It should be possible but you would need to manually build a table somewhere of where Stimulus can import controllers from, as normally this table is built from globbing the require context in application.js
Regarding native browser support for ES Module dependencies…
When looking at this example, I noticed that the unpkg JavaScript CDN supports adding ?module to a script tag’s src value, resulting in module names in that script (and in its dependencies, recursively) being automatically rewritten to full URLs.
You can use Stimulus as an ES Mosule with cdn.skypack.dev;
import { Application } from “https://cdn.skypack.dev/stimulus”;
To ease further, it would be great if Stimulus would be distributed not only as UMD but also as ESM.