Closed Bartvds closed 10 years ago
You can currently generate just the runtime by doing this:
var runtimeText = es6now.translate("", { runtime: true });
Does that work?
If it's a common thing we could have a shortcut like:
var runtimeText = es6now.runtime();
Closing this for now - if there's a need for a shortcut we can add it later.
When exporting many files with
module: true
the es6now runtime could maybe be arequire()
-able module instead of adding it to every file?Maybe even extract it and move it to it's own npm module? Could be neat.
Just a thought, not sure if good idea.