Accept args.module = true for a particular script to add type="module". It would be up to consumers to do a feature detect: 'noModule' in document.createElement('script') ...to decide which script to ...
Yes, use common file extensions like .js. The article you linked even calls it out that some tooling will never support it, most web servers don't serve it right, script type attribute (type="module") ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results