In v0.0.1
there was no build involved, I simply used node.js
's
require
module.exports
to generate a es5 compatible module, that then could get require
d in any consuming project.
In v0.0.2
I introduced babel to generate a module, that could be written in es6 (using import
) and processed to es5.
This module could be import
ed and require
d (but using require('moduleName').default
) either way in a consuming project.
- babel setup uses the old
babel-preset-env
and being configured via.babelrc
- I wanted to build it via@babel/preset-env
butbabel.config.json
was not doing anything š¤·