WebView.loadFile with ESM import & export statements

Is it possible to use ESM modules in a WebView from a loaded html file?

Honestly I don’t know. I don’t see why it shouldn’t work since referencing files does work and it’s just a regular web browser.

I never got ESM to work. The webview used is an older style and I don’t believe it supports it.