-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Add exports field to react-refresh's package.json #23087
Conversation
Hi @otakustay! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Although I exported both |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Comparing: fe905f1...f0ad608 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
looks good, thanks |
Summary: This sync includes the following changes: - **[51947a14b](facebook/react@51947a14b )**: Refactored how React/DevTools log Timeline performance data ([#23102](facebook/react#23102)) //<Brian Vaughn>// - **[c09596cc6](facebook/react@c09596cc6 )**: Add RN_FB bundles for react-is ([#23101](facebook/react#23101)) //<Moti Zilberman>// - **[9a7e6bf0d](facebook/react@9a7e6bf0d )**: Add --no-show-signature to "git show" commands ([#23038](facebook/react#23038)) //<Stefan Sundin>// - **[2f26eb85d](facebook/react@2f26eb85d )**: Add exports field to react-refresh's package.json ([#23087](facebook/react#23087)) //<Gray Zhang>// - **[811634762](facebook/react@811634762 )**: add enableTransitionTracing feature flag ([#23079](facebook/react#23079)) //<Luna Ruan>// Changelog: [General][Changed] - React Native sync for revisions fe905f1...51947a1 jest_e2e[run_all_tests] Reviewed By: rickhanlonii, kacieb Differential Revision: D33634332 fbshipit-source-id: a83b663a122a2cb79225ca33a007fe1774728c03
* Add exports field to react-refresh's package.json * Update package.json * Add runtime to exports
* Add exports field to react-refresh's package.json * Update package.json * Add runtime to exports
Summary
We were migrating our build tools to pure ESM format, and found we cannot import
react-refresh/babel
from a pure ESM module, it indicates to add an extension:In order to make pure ESM able to import
react-refresh/babel
, we need to add anexports
field intopackage.json
mapping./babel
to./babel.js
.How did you test this change?
I have manually modified local
node_modules/react-refresh/package.json
and tested our build.