Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After my testing, it depends on the version of the
@babel/plugin-transform-regenerator
plugin whether the auxiliary function for the generator will be produced. It is not related to the version of@babel/core
.If the
transforme-regenerator
plugin version is lower than 7.18.0, the compiled file will not inline the generator auxiliary function. If the version of thetransform-regenerator
plug-in is higher than or equal to 7.18.0, auxiliary inline function will be generated.Here is a warehouse address for my testing: https://github.com/keer-tea/babel-regenerator-test
There is one type of warehouse, with versions of both packages less than 7.18.0. In Warehouse 2, the
@babel/core
version is less than 7.18.0, and the@babel/plugin-transform-regenerator
version is greater than 7.18.0. In Warehouse 3, the@babel/core
version is greater than 7.18.0, and the@babel/plugin-transform-reenerator
version is less than 7.18.0.I hope to correct this mistake.