Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

v0.6.5

Choose a tag to compare

@benjamn benjamn released this 18 Sep 19:16

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.