Import/export


#1

I’m mainly looking for a way I can know when imports (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) are supported in electron. Do I just wait until io.js supports it? Do I have to update something when it does? How do I update the stuff needed to update? Can I find a changelog somewhere with all supported features?

Lots of questions


#2

My guess is that you have to wait until io.js supports it, and when that will happen I do not know. Once they support it you probably are going to need to update your version of electron, just like you would with every new version of electron.

In the meantime I recommend that you use the require() statement that you can use throughout your application and which serves the same purpose. If you really want to, again there is no need for this since you can just use require(), you can use Babel (https://babeljs.io/) with a setup that allows you to use the ES6 import syntax and replaces it with require() like statements.