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
Updates @babel/plugin-transform-modules-umd to 7.7.0+ #17818
Conversation
This fixes a bug in babel that was producing UMD modules that were incompatible with ES6 module loader in browsers.
If someone can walk me through what these errors mean I can try to fix them. |
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 86e766c:
|
Is there a way I can see the build artifacts from the CI build step? I cannot build locally because the build process appears to require Java, but I would like to take a look at the build output to make sure the target bug is actually fixed. |
@MicahZoltu You can use the download script for this. https://github.com/facebook/react/blob/master/scripts/release/README.md#prepare-canary I think the command to pull down the artifacts for this PR should be:
|
Same error if executed from project root using relative script path:
If it matters, I'm on running on Windows. |
Or perhaps there is another part of Babel that generates the UMD file (other than the UMD transformer) and it has the same bug as the UMD transformer had? |
Ahh, digging some more it appears you are actually using |
Closing this PR since the problem appears to be rollup, not babel. I believe rollup fixed this bug long ago (over a year) but this project appears to be using an ancient version of rollup and upgrading is likely to be beyond my capability given my unfamiliarity with React's build process or rollup. I'll update the linked issue with additional details. |
Summary
This fixes a bug in babel that was producing UMD modules that were incompatible with ES6 module loader in browsers.
Test Plan
Ran
yarn test
andyarn test-prod
. There were 3 failures inyarn test-prod
that make no sense to me (external developer) and I'm hoping someone can give feedback on how to address them in this PR description.Fixes #17352