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
Fix incorrect module path when absoluteRuntime is specified #11893
Conversation
...abel-plugin-transform-runtime/test/fixtures/absoluteRuntime/true-corejs3-stable/options.json
Outdated
Show resolved
Hide resolved
...l-plugin-transform-runtime/test/fixtures/absoluteRuntime/true-corejs3-proposals/options.json
Outdated
Show resolved
Hide resolved
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.
Good catch! Looks good to me with some nits.
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 433c55d:
|
Do I have to change anything or are these changes applied automatically? Sorry I'm not familiar with GitHub Pull Requests. |
@sz-coder They can be applied from GUI, however we still have to manually update the test fixtures:
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/26646/ |
@@ -35,6 +35,7 @@ | |||
"@babel/plugin-transform-typeof-symbol": "^7.10.4", | |||
"@babel/preset-env": "^7.10.4", | |||
"@babel/runtime": "^7.10.5", | |||
"@babel/runtime-corejs3": "^7.10.5", |
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.
This is meant to fix the e2e error: https://app.circleci.com/pipelines/github/babel/babel/3524/workflows/90153e91-f615-4930-8a0f-5ed243d3a6cc/jobs/26605/parallel-runs/0/steps/0-103
The error is thrown because @babel/runtime-corejs3
is not hoisted to the top level in e2e-test
. The other test is passing because @babel/runtime-corejs3
is hoisted to the top level from fixture locations, this is not guaranteed and dev deps should be declared.
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.
Thanks!
Changed
moduleName
tomodulePath
inpackages/plugin-transform-runtime/src/index.js
.