v0.6.5
After examining some code using Regenerator in the wild, I decided to reinstate require("regenerator").runtime.path
, which specifies the full path of https://github.com/facebook/regenerator/blob/master/runtime.js in case you need to read that file in your projects.
It is also now possible to inject the runtime directly into the transformed AST by calling require("regenerator").transform(ast, { includeRuntime: true })
. This is especially useful when you have multiple AST transform functions (in addition to require("regenerator").transform
) that you want to compose together without reparsing/reprinting the source code.