0.0.17 • Published 4 years ago
@sz-software/jbuild v0.0.17
@sz-software/jbuild
Rationale
babel is an awesome project.
However one of its shortcoming, in my view, is that the @babel/runtime
cannot be embeded in the output code.
This build tool uses webpack to bundle all needed babel runtime helpers.
To keep it simple, jbuild uses the following, fixed babel configuration:
{
"presets": ["@babel/preset-env"],
"plugins": [
["@babel/plugin-transform-runtime", {
"helpers": true,
"corejs": 3
}]
]
}
Usage
$ jbuild <source-folder> <output-folder>
— that's it.
The generated output code does not depend on @babel/runtime
anymore.