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.