In Babel you can set which module format should be used. Default is CommonJS. You can set amd, system and umd as well.
$ babel -m amd index.js
It would be nice if we could set this in the settings pane of atom-preview so preview can display the different outputs depending on this setting. I tried to make a pull request for this but unfortunately I am not experienced enough to accomplish this :unamused:
In Babel you can set which module format should be used. Default is CommonJS. You can set amd, system and umd as well.
It would be nice if we could set this in the settings pane of
atom-preview
so preview can display the different outputs depending on this setting. I tried to make a pull request for this but unfortunately I am not experienced enough to accomplish this :unamused: