-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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
isFBBundle should be true if it's FB for www or FB for RN #19420
Conversation
@@ -357,7 +357,7 @@ function getPlugins( | |||
bundleType === RN_FB_DEV || | |||
bundleType === RN_FB_PROD || | |||
bundleType === RN_FB_PROFILING; | |||
const shouldStayReadable = isFBBundle || isRNBundle || forcePrettyOutput; | |||
const shouldStayReadable = isFBWWWBundle || isRNBundle || forcePrettyOutput; |
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.
Arguably shouldStayReadable
should be false for OSS RN since we don't trust the minifier.
This ensures that the .fb.js override files kick in for RN. Otherwise we won't have FB specific exports in the isomorphic modules.
616076c
to
3960bc6
Compare
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 3960bc6:
|
Details of bundled changes.Comparing: b23ea02...3960bc6 react
React: size: 0.0%, gzip: 0.0% Size changes (stable) |
Details of bundled changes.Comparing: b23ea02...3960bc6 react
React: size: 0.0%, gzip: 0.0% Size changes (experimental) |
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.
LGTM
This ensures that the .fb.js override files kick in for RN. Otherwise we won't have FB specific exports in the isomorphic modules.