Skip to content
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

These flags are hard coded in our internal config #16883

Merged
merged 1 commit into from
Sep 25, 2019

Conversation

sebmarkbage
Copy link
Collaborator

By hard coding them here they can get properly DCE and don't have to be sent to users. The internal config should only have dynamic flags.

By hard coding them here they can get properly DCE and don't have to be
sent to users. The internal config should only have dynamic flags.
@sizebot
Copy link

sizebot commented Sep 25, 2019

React: size: 0.0%, gzip: -0.0%

ReactDOM: size: 0.0%, gzip: -0.0%

Details of bundled changes.

Comparing: 32e5c97...afe1a5b

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom.profiling.min.js 0.0% -0.0% 120.78 KB 120.78 KB 38.03 KB 38.02 KB NODE_PROFILING
react-dom-server.browser.development.js 0.0% -0.0% 142.24 KB 142.24 KB 37.14 KB 37.14 KB UMD_DEV
ReactDOM-dev.js -0.0% -0.0% 978.94 KB 978.56 KB 216.13 KB 216.08 KB FB_WWW_DEV
react-dom-server.browser.production.min.js 0.0% -0.0% 19.86 KB 19.86 KB 7.37 KB 7.37 KB UMD_PROD
react-dom-test-utils.development.js 0.0% -0.0% 57.53 KB 57.53 KB 15.83 KB 15.83 KB UMD_DEV
react-dom-unstable-fizz.browser.development.js 0.0% -0.1% 3.78 KB 3.78 KB 1.53 KB 1.53 KB UMD_DEV
react-dom-test-utils.production.min.js 0.0% -0.1% 11.19 KB 11.19 KB 4.16 KB 4.15 KB UMD_PROD
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.3% 1.2 KB 1.2 KB 702 B 700 B UMD_PROD
react-dom-test-utils.development.js 0.0% -0.0% 55.81 KB 55.81 KB 15.5 KB 15.5 KB NODE_DEV
react-dom-unstable-fizz.browser.development.js 0.0% -0.1% 3.61 KB 3.61 KB 1.48 KB 1.48 KB NODE_DEV
react-dom-test-utils.production.min.js 0.0% -0.0% 10.96 KB 10.96 KB 4.09 KB 4.09 KB NODE_PROD
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.3% 1.04 KB 1.04 KB 633 B 631 B NODE_PROD
react-dom.development.js 0.0% -0.0% 953.42 KB 953.42 KB 215.13 KB 215.13 KB UMD_DEV
react-dom.production.min.js 0.0% -0.0% 117.07 KB 117.07 KB 37.7 KB 37.7 KB UMD_PROD
ReactTestUtils-dev.js -1.4% -1.3% 53.24 KB 52.49 KB 14.25 KB 14.06 KB FB_WWW_DEV
react-dom.profiling.min.js 0.0% -0.0% 120.61 KB 120.61 KB 38.71 KB 38.71 KB UMD_PROFILING
react-dom.development.js 0.0% -0.0% 947.47 KB 947.47 KB 213.59 KB 213.59 KB NODE_DEV
react-dom-server.node.development.js 0.0% -0.0% 139.19 KB 139.19 KB 36.36 KB 36.36 KB NODE_DEV
react-dom.production.min.js 0.0% -0.0% 117.09 KB 117.09 KB 36.96 KB 36.96 KB NODE_PROD
react-dom-server.node.production.min.js 0.0% -0.0% 20.2 KB 20.2 KB 7.52 KB 7.52 KB NODE_PROD
ReactDOM-prod.js -0.5% -0.4% 393.5 KB 391.67 KB 71.6 KB 71.33 KB FB_WWW_PROD
ReactDOM-profiling.js -0.5% -0.3% 399.79 KB 397.97 KB 72.71 KB 72.46 KB FB_WWW_PROFILING
react-dom-server.browser.development.js 0.0% -0.0% 138.17 KB 138.17 KB 36.13 KB 36.13 KB NODE_DEV
react-dom-server.browser.production.min.js 0.0% -0.0% 19.79 KB 19.79 KB 7.36 KB 7.36 KB NODE_PROD
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 60.73 KB 60.73 KB 15.85 KB 15.85 KB UMD_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% -0.0% 10.74 KB 10.74 KB 3.67 KB 3.67 KB UMD_PROD
ReactDOMServer-dev.js -0.5% -0.5% 142.76 KB 142.09 KB 35.77 KB 35.6 KB FB_WWW_DEV
ReactDOMServer-prod.js -0.6% -0.8% 48.55 KB 48.24 KB 11.13 KB 11.04 KB FB_WWW_PROD
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 60.4 KB 60.4 KB 15.73 KB 15.72 KB NODE_DEV
react-dom-unstable-fizz.node.development.js 0.0% -0.1% 3.87 KB 3.87 KB 1.51 KB 1.51 KB NODE_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% -0.0% 10.49 KB 10.49 KB 3.57 KB 3.57 KB NODE_PROD
react-dom-unstable-fizz.node.production.min.js 0.0% -0.3% 1.1 KB 1.1 KB 668 B 666 B NODE_PROD

scheduler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
scheduler-unstable_mock.development.js 0.0% -0.0% 22.44 KB 22.44 KB 5.28 KB 5.28 KB UMD_DEV
scheduler-tracing.profiling.min.js 0.0% -0.2% 3.25 KB 3.25 KB 992 B 990 B NODE_PROFILING
scheduler-unstable_mock.production.min.js 0.0% -0.0% 4.73 KB 4.73 KB 1.98 KB 1.98 KB UMD_PROD
SchedulerTracing-dev.js -7.1% -8.9% 10.56 KB 9.82 KB 2.3 KB 2.09 KB FB_WWW_DEV
scheduler-tracing.development.js 0.0% -0.1% 11.72 KB 11.72 KB 3.03 KB 3.03 KB NODE_DEV
scheduler-tracing.production.min.js 0.0% -1.3% 728 B 728 B 386 B 381 B NODE_PROD
scheduler-unstable_mock.production.min.js 0.0% -0.1% 4.72 KB 4.72 KB 1.92 KB 1.92 KB NODE_PROD
scheduler.development.js 0.0% -0.0% 29.49 KB 29.49 KB 7.57 KB 7.57 KB NODE_DEV
scheduler.production.min.js 0.0% -0.0% 5 KB 5 KB 2 KB 2 KB NODE_PROD

react

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react.development.js 0.0% -0.0% 117.88 KB 117.88 KB 29.95 KB 29.95 KB UMD_DEV
react.production.min.js 0.0% -0.0% 12.43 KB 12.43 KB 4.9 KB 4.9 KB UMD_PROD
react.profiling.min.js 0.0% -0.0% 15.93 KB 15.93 KB 5.99 KB 5.99 KB UMD_PROFILING
react.production.min.js 0.0% -0.0% 6.69 KB 6.69 KB 2.78 KB 2.78 KB NODE_PROD
React-dev.js -1.0% -1.0% 71.34 KB 70.59 KB 18.34 KB 18.16 KB FB_WWW_DEV
React-prod.js 0.0% -0.0% 17.41 KB 17.41 KB 4.56 KB 4.55 KB FB_WWW_PROD
React-profiling.js 0.0% -0.0% 17.41 KB 17.41 KB 4.56 KB 4.55 KB FB_WWW_PROFILING

react-art

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-art.development.js 0.0% -0.0% 672.55 KB 672.55 KB 145.81 KB 145.81 KB UMD_DEV
react-art.production.min.js 0.0% -0.0% 103.86 KB 103.86 KB 31.62 KB 31.62 KB UMD_PROD
react-art.development.js 0.0% -0.0% 603.18 KB 603.18 KB 128.4 KB 128.4 KB NODE_DEV
react-art.production.min.js 0.0% -0.0% 68.87 KB 68.87 KB 20.86 KB 20.86 KB NODE_PROD
ReactART-dev.js -0.1% -0.1% 618.76 KB 618.29 KB 128.27 KB 128.19 KB FB_WWW_DEV
ReactART-prod.js -0.6% -0.6% 231.68 KB 230.3 KB 39.21 KB 38.96 KB FB_WWW_PROD

Generated by 🚫 dangerJS against afe1a5b

export const warnAboutDeprecatedLifecycles = true;
export const warnAboutShorthandPropertyCollision = false;
export const warnAboutDeprecatedSetNativeProps = false;
export const disableLegacyContext = false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make a GK for this one. I can do in a follow-up.

@@ -39,6 +30,16 @@ export const enableProfilerTimer = __PROFILE__;
export const enableSchedulerTracing = __PROFILE__;
export const enableSchedulerDebugging = true;

export const replayFailedUnitOfWorkWithInvokeGuardedCallback = false;
export const warnAboutDeprecatedLifecycles = true;
export const warnAboutShorthandPropertyCollision = false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one too.

@sebmarkbage sebmarkbage merged commit 0d8c0cd into facebook:master Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants