website icon indicating copy to clipboard operation
website copied to clipboard

@babel/preset-env, useBuiltIns: 'usage' and regeneratorRuntime

Open thernstig opened this issue 4 years ago • 4 comments

https://babeljs.io/docs/en/babel-preset-env#usebuiltins-usage says it adds polyfills. But I assume it also adds regeneratorRuntime (which is not a polyfill)? Should that be explicit somewhere in the usage part? Since I assume usage doesn't do anything else than to add core-js Polyfills and the funciton regeneratorRuntime?

thernstig avatar Apr 15 '21 09:04 thernstig

Hey @thernstig! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.

babel-bot avatar Apr 15 '21 09:04 babel-bot

I'm confused about this same thing. Some clarification would be helpful.

limeandcoconut avatar May 03 '21 18:05 limeandcoconut

I've tried this and every single fix on the internet and nothing can solve regeneratorRuntime error in late 2021, hours upon hours upon days. I hate this industry and product with every inch of my heart I hope it get deprecated and disappear from this world forever.

OriAlon avatar Aug 24 '21 08:08 OriAlon

+1. The usage description should mention regeneratorRuntime, not just core-js.

zbrogz avatar Oct 08 '21 20:10 zbrogz