<script type=module> is supported across all major browsers now, but not in jsdom yet. This can be a tracking issue for the feature.
Node.js doesn't support modules without flags either, and it's unclear exactly how much Node support will be compatible with the web. It's possible to implement support without native support in Node, possibly using projects like https://github.com/standard-things/esm Care would have to be taken to match web behavior and capabilities.
<script type=module>is supported across all major browsers now, but not in jsdom yet. This can be a tracking issue for the feature.Node.js doesn't support modules without flags either, and it's unclear exactly how much Node support will be compatible with the web. It's possible to implement support without native support in Node, possibly using projects like https://github.com/standard-things/esm Care would have to be taken to match web behavior and capabilities.