> I'm also thinking that since now JavaScript modules landed in browsers, > perhaps Nim could target a javascript module with export directives instead > of a script to include inline on a webpage.
Keep in mind that a lot of us want to have support for a large variety of browsers, and this includes old ones. It would be preferable to fix the issues to allow multiple JS files to work via Nim.