Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: compatible targets shouldn't insert regeneratorRuntime
- specifically, this checks that `--target node`, which targets Node 10 right now, does not output regeneratorRuntime as generators have native support there (as does async/await) - remove `targets` from `polyfill-regenerator` config because it's actually not necessary for this specific polyfill - it only inserts regenerator if a `regeneratorRuntime` global is detected, which is only inserted by `@babel/plugin-transform-generator` if the `targets` require it - meaning that for this particular polyfill, `preset-env`'s `targets` are sufficient
- Loading branch information