New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarifications regarding migration and backwards compatibility #127
Comments
Reading some previous issues/questions I have found the following possible answers so far:
|
Hello guys! Any comments on this? (Friendly ping) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi guys! Thank you for all your great work here, I really think
babel-polyfills
is the good path to follow. It just took me some time to find it.Yesterday I started the migration in one library from a
@babel/preset-env
/@babel/plugin-transform-runtime
setup. I carefully read all your notes and some of the source code involved, however, I wrote down some doubts that I would like to clarify before making my changes definitive.Considering the following situation:
(Having
@babel/runtime
as a runtime dependency and@babel/preset-env
,@babel/plugin-transform-runtime
andbabel-plugin-polyfill-corejs3
as development dependencies, after migration.)The following doubts arise:
@babel/runtime
helpers be transpiled/polyfilled? Since we are not referencing them from the corejs source anymore (@babel/runtime-corejs3
). For example, if@babel/runtime/helpers/asyncToGenerator
is used, willPromise
be polyfilled inside it? (Without polluting the global scope). (Maybe this could be a problem because I think it is not possible anymore to disable general polyfills in@babel/plugin-transform-runtime
while still importing helpers from@babel/runtime-corejs3
.)babel-plugin-polyfill-corejs3
, is it possible to use a specific version ofcore-js
? (like3.18.1
). Should/can we addcore-js-pure
(or other flavor) as a runtime dependency explicitly in our library?proposals
option in@babel/plugin-transform-runtime
?Hope I am not missing or confusing anything. I would really appreciate any insights.
Thank you again!
The text was updated successfully, but these errors were encountered: