ES modules are starting to land in browsers! They're in… All you need is type=module on the script element, and the browser will treat the inline or external script as an ECMAScript module. There are already some great articles on modules, but I wanted to share a few browser-specific things I'd learned while testing & reading the spec.
Full article