This is enough to do it. Something like ‘you can’t use import in a try catch’ should be enough reason to not use imports at all… :S Ach. Hm. One way is for the script to use an API provided by your module loader. It would have been a better article. or any later version. export var foo = 'bar' export var baz = 'ponyfoo' It’s important to keep in mind that we are exporting bindings. Thanks, Jason, for the clear, thoughtful reply. I’m also impatient for the dynamic APIs to be standardized. Jon Coppeard is implementing modules in Firefox. Written by Created May 17, 2015. The simplest way is to add the export keyword. Embed. So naturally, JavaScript has a module system. _. Loading a module may involve fetching code off the internet, which can’t be done synchronously. Code, create, and learn together Code, collaborate, compile, run, share, and deploy ES6 and more online from your browser Sign up to code in ES6 Explore Multiplayer >_ Collaborate in real-time with your friends Last updated 7 years ago by jdalton. There are two differences. You just load them like any other script, using