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
Normalize core-js
entry points
#9752
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/10586/ |
@@ -21,6 +21,9 @@ function isBabelPolyfillSource(source) { | |||
} | |||
|
|||
function isCoreJSSource(source) { | |||
if (typeof source === "string") { | |||
source = source.replace(/(\/(index)?)?(\.js)?$/i, "").toLowerCase(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should use i
and toLoweCase
, otherwise imports that work when transpiled stop working if they are left as-is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mh maybe it is ok to normalize paths; it won't cause any bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't care, it's not something principal for me.
packages/babel-preset-env/src/polyfills/corejs3/entry-plugin.js
Outdated
Show resolved
Hide resolved
Co-Authored-By: zloirock <zloirock@zloirock.ru>
Related this comment. Sorry, one more time from the main repo.