Open morlay opened 2 years ago
Your link to babel is something completely different, and I think this is a huge security risk
Sorry I misread it
Your link to babel is something completely different, and I think this is a huge security risk
@babel/runtime-corejs3/{core-js,core-js-stable}
just a wrap of core-js-pure
Note that the pure version / runtime transform has many limitations and many features are not available. However, it's the best option, for example, for libraries that should not pollute the global namespace.
babel-plugin-polyfill-corejs3
injects core-js-pure
directly instead of @babel/runtime
.
Hey wanted to mention that this would be an important feature to use swc to build libraries.
It's sort of fine to pollute the global scope when you're using SWC to build your app, but when building a library that someone uses in their app, it feels like a bad idea.
(or am I being too cautious here?)
Don't leave comments like +1 It does not help at all
Describe the feature
Could be
Babel plugin or link to the feature description
https://babeljs.io/docs/en/babel-plugin-transform-runtime#core-js-aliasing
Additional context
https://ponyfoo.com/articles/polyfills-or-ponyfills https://github.com/zloirock/core-js/blob/master/README.md
it could be enable when
corejs@3
andusage