Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
regeneratorRuntime is not defined when using generator #708
Comments
|
This is a bug. I think it should be fixed by #707. To clarify - are you using |
|
Thanks for the quick response.
I am trying to move https://github.com/vega/vega over to microbundle and mainly target browsers. I ran into the problem above because of https://github.com/vega/vega/blob/a8e6991411c2c5c4805320f87276e9861e80d69c/packages/vega-statistics/src/numbers.js#L1.
We do have a babel config in the repo (although I will probably get rid of it once I have switched over to microbundle). I was able to reproduce the issue without any special files (just the code above). |
|
So yeah, my issue is similar to #704 but I am not targeting node. |
|
Alrighty. I need to double-check my fix there for the browser target. |
|
Sweet. Thanks! |
|
@domoritz @developit Same error for me, there is a fix now? |
|
I created my own rollup config: https://github.com/vega/vega/blob/master/rollup.config.js. |
{ "name": "out", "source": "index.js", "dependencies": { "microbundle": "^0.12.3" } }running
Results in this error
It works if I add
import 'regenerator-runtime/runtime';to the top of the js file but it would be great if I didn't have to guess that this extra import is required (and it won't be required in the modern build for example:node dist/out.modern.jsworks).