I'm looking for simple module loading for import/export es6 modules transpiled by babel.
- Start with es6 source files with import/export modules for use in the browser
- Statically transpile this to es5 with babel, with a config specifying whichever module transform (amd, commonjs, systemjs) is simplest to load.
- Do not use npm for the modules, nor any other complex workflow. Just babel transpiled files.
- Load these es5 files with modules, with a
<script>
to load a library that the babel transpilation used for loading es6 modules.
I'd like to avoid browserify, webpack, jspm etc. Just simple transpiled es6->es5 and using the library babel compiled modules to. I don't need bundling. We're talking simple, basic javascript here.
Is this possible? If so, how?!
All the module loading discussions I've seen use complex workflows that seem to me to be unnecessary. I'd like to simply use es6 import/export in a set of files and use them as simply as possible in the browser.