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

Use Closure Compiler to compile to ES5 instead of Babel #18449

Merged
merged 3 commits into from
Apr 1, 2020

Conversation

sebmarkbage
Copy link
Collaborator

While trying to do some static compilation refactoring, I noticed that Closure Compiler uses particularly let vs const to do optimization. We're better off leaving the code as ES2015 and letting Closure Compiler compile it down to ES5.

Unfortunately it tries to also compile calls to native functions to runtime polyfills. There's an option to opt out of that but it has a bug with Symbols. I had to work around Symbols a bit. We'll have to be careful with that as we add new ES2015 library calls (Object.assign and Array.from seems fine).

I also used a different Babel config for builds than the general project one which is also used for running tests. We should try to keep this config limited.

Maybe one day we can skip Babel all together.

Diff of the build output. sebmarkbage/react-builds@a63c7ee

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 1, 2020

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 2979cee:

Sandbox Source
strange-smoke-866o0 Configuration

@sizebot
Copy link

sizebot commented Apr 1, 2020

Details of bundled changes.

Comparing: 9b88b78...2979cee

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom.production.min.js -0.3% -0.4% 118.79 KB 118.45 KB 37.34 KB 37.19 KB NODE_PROD
react-dom-test-utils.development.js +3.0% +2.9% 59.23 KB 60.97 KB 15.64 KB 16.1 KB UMD_DEV
ReactDOMTesting-profiling.js -0.7% -1.0% 404.21 KB 401.49 KB 73.64 KB 72.92 KB FB_WWW_PROFILING
react-dom-server.browser.production.min.js -0.5% 🔺+0.3% 19.57 KB 19.46 KB 7.28 KB 7.3 KB NODE_PROD
react-dom-unstable-fizz.browser.development.js +43.8% +27.8% 3.34 KB 4.81 KB 1.26 KB 1.61 KB UMD_DEV
react-dom.profiling.min.js -0.3% -0.4% 122.65 KB 122.31 KB 38.53 KB 38.37 KB NODE_PROFILING
react-dom-test-utils.production.min.js 0.0% -0.0% 12.25 KB 12.25 KB 4.54 KB 4.54 KB UMD_PROD
react-dom-unstable-fizz.browser.production.min.js 🔺+1.2% 🔺+1.0% 1.17 KB 1.19 KB 691 B 698 B UMD_PROD
react-dom-server.node.development.js +0.3% +0.3% 127.78 KB 128.2 KB 34.21 KB 34.31 KB NODE_DEV
react-dom-server.node.production.min.js -0.5% 🔺+0.2% 19.97 KB 19.87 KB 7.43 KB 7.45 KB NODE_PROD
ReactDOMForked-dev.js 0.0% 0.0% 990.71 KB 990.96 KB 220.36 KB 220.45 KB FB_WWW_DEV
ReactDOMForked-prod.js -0.7% -1.0% 418.58 KB 415.84 KB 75.68 KB 74.95 KB FB_WWW_PROD
react-dom-unstable-fizz.node.development.js +38.0% +25.1% 3.68 KB 5.08 KB 1.33 KB 1.67 KB NODE_DEV
react-dom.development.js +0.1% +0.1% 894.32 KB 894.87 KB 196.88 KB 197.02 KB UMD_DEV
ReactDOMForked-profiling.js -0.7% -0.9% 429.71 KB 426.73 KB 77.5 KB 76.84 KB FB_WWW_PROFILING
react-dom-server.browser.development.js +0.3% +0.3% 133.4 KB 133.87 KB 34.38 KB 34.49 KB UMD_DEV
react-dom-unstable-fizz.node.production.min.js 🔺+1.2% 🔺+0.8% 1.15 KB 1.16 KB 654 B 659 B NODE_PROD
react-dom.production.min.js -0.3% -0.5% 118.72 KB 118.35 KB 38.13 KB 37.95 KB UMD_PROD
react-dom-server.browser.production.min.js -0.5% 0.0% 19.66 KB 19.55 KB 7.33 KB 7.33 KB UMD_PROD
react-dom.profiling.min.js -0.3% -0.5% 122.43 KB 122.06 KB 39.36 KB 39.15 KB UMD_PROFILING
ReactDOMTesting-dev.js 0.0% 0.0% 945.47 KB 945.73 KB 211.08 KB 211.16 KB FB_WWW_DEV
react-dom.development.js +0.1% +0.1% 851.4 KB 851.9 KB 194.46 KB 194.61 KB NODE_DEV
ReactDOMTesting-prod.js -0.7% -1.0% 404.21 KB 401.49 KB 73.64 KB 72.92 KB FB_WWW_PROD
react-dom-server.browser.development.js +0.3% +0.3% 126.56 KB 126.99 KB 33.95 KB 34.05 KB NODE_DEV
ReactDOM-dev.js 0.0% 0.0% 990.71 KB 990.96 KB 220.36 KB 220.45 KB FB_WWW_DEV
ReactDOMServer-dev.js +0.3% +0.3% 136.44 KB 136.85 KB 34.78 KB 34.87 KB FB_WWW_DEV
ReactDOM-prod.js -0.7% -1.0% 418.58 KB 415.84 KB 75.68 KB 74.95 KB FB_WWW_PROD
react-dom-test-utils.development.js +3.1% +3.1% 54.69 KB 56.36 KB 15.03 KB 15.49 KB NODE_DEV
ReactDOMServer-prod.js -0.0% 🔺+0.3% 46.61 KB 46.58 KB 10.84 KB 10.87 KB FB_WWW_PROD
react-dom-unstable-fizz.browser.development.js +47.6% +29.3% 2.94 KB 4.33 KB 1.17 KB 1.51 KB NODE_DEV
ReactDOM-profiling.js -0.7% -0.9% 429.71 KB 426.73 KB 77.5 KB 76.84 KB FB_WWW_PROFILING
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 57.7 KB 57.7 KB 14.36 KB 14.36 KB UMD_DEV
react-dom-unstable-fizz.browser.production.min.js 🔺+1.4% 🔺+1.3% 1013 B 1 KB 602 B 610 B NODE_PROD
react-dom-unstable-native-dependencies.production.min.js -0.1% -0.3% 10.31 KB 10.29 KB 3.49 KB 3.48 KB UMD_PROD
ReactTestUtils-dev.js +2.9% +2.9% 56.77 KB 58.44 KB 15.29 KB 15.73 KB FB_WWW_DEV
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 54.71 KB 54.71 KB 14.14 KB 14.14 KB NODE_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% -0.1% 10.04 KB 10.05 KB 3.37 KB 3.37 KB NODE_PROD

react-flight-dom-webpack

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-flight-dom-webpack-server.node.production.min.js -0.7% 🔺+0.6% 3.45 KB 3.42 KB 1.56 KB 1.57 KB NODE_PROD
react-flight-dom-webpack.development.js +9.4% +7.7% 14.03 KB 15.36 KB 4.01 KB 4.31 KB UMD_DEV
react-flight-dom-webpack.production.min.js -0.2% 🔺+0.6% 3.71 KB 3.7 KB 1.64 KB 1.65 KB UMD_PROD
react-flight-dom-webpack-server-runtime.development.js +119.8% +57.5% 1.16 KB 2.54 KB 588 B 926 B NODE_DEV
react-flight-dom-webpack-server-runtime.production.min.js 🔺+2.9% 🔺+2.1% 484 B 498 B 332 B 339 B NODE_PROD
react-flight-dom-webpack-server.node.development.js +10.3% +8.6% 10.68 KB 11.78 KB 3.24 KB 3.52 KB NODE_DEV
react-flight-dom-webpack.development.js +9.7% +7.9% 13 KB 14.26 KB 3.89 KB 4.2 KB NODE_DEV
react-flight-dom-webpack-server.browser.development.js +11.0% +9.0% 10.57 KB 11.74 KB 3.08 KB 3.36 KB UMD_DEV
react-flight-dom-webpack.production.min.js -0.2% 🔺+0.4% 3.53 KB 3.52 KB 1.55 KB 1.56 KB NODE_PROD
react-flight-dom-webpack-server.browser.production.min.js -0.6% 🔺+0.9% 3.47 KB 3.45 KB 1.63 KB 1.64 KB UMD_PROD
react-flight-dom-webpack-server.browser.development.js +11.3% +9.3% 9.74 KB 10.84 KB 2.97 KB 3.25 KB NODE_DEV
react-flight-dom-webpack-server.browser.production.min.js -0.8% 🔺+0.7% 3.29 KB 3.26 KB 1.55 KB 1.56 KB NODE_PROD

react-test-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-test-renderer-shallow.development.js +1.8% +2.2% 37.93 KB 38.62 KB 9.19 KB 9.39 KB UMD_DEV
react-test-renderer-shallow.production.min.js -0.6% 🔺+1.3% 12.8 KB 12.73 KB 3.91 KB 3.96 KB UMD_PROD
react-test-renderer.development.js +0.1% +0.1% 534.14 KB 534.64 KB 115.05 KB 115.18 KB NODE_DEV
react-test-renderer.production.min.js -0.4% -0.6% 73.44 KB 73.15 KB 22.17 KB 22.03 KB NODE_PROD
ReactTestRenderer-dev.js 0.0% +0.1% 568.24 KB 568.5 KB 119.79 KB 119.86 KB FB_WWW_DEV
react-test-renderer.development.js +0.1% +0.1% 560.21 KB 560.75 KB 116.48 KB 116.63 KB UMD_DEV
react-test-renderer.production.min.js -0.4% -0.5% 73.63 KB 73.32 KB 22.45 KB 22.34 KB UMD_PROD

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactNativeRenderer-dev.js +0.1% +0.1% 645.74 KB 646.22 KB 139.42 KB 139.54 KB RN_OSS_DEV
ReactNativeRenderer-prod.js -0.5% -0.7% 270.06 KB 268.7 KB 46.81 KB 46.49 KB RN_OSS_PROD
ReactNativeRenderer-profiling.js -0.5% -0.8% 281.89 KB 280.59 KB 49.1 KB 48.71 KB RN_OSS_PROFILING
ReactFabric-dev.js +0.1% +0.1% 627.42 KB 627.91 KB 134.98 KB 135.12 KB RN_OSS_DEV
ReactFabric-prod.js -0.5% -0.7% 262.02 KB 260.68 KB 45.31 KB 44.97 KB RN_OSS_PROD
ReactFabric-profiling.js -0.5% -0.7% 273.85 KB 272.57 KB 47.57 KB 47.21 KB RN_OSS_PROFILING

react-flight-dom-relay

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactFlightDOMRelayServerRuntime-dev.js +124.3% +60.8% 1.11 KB 2.5 KB 554 B 891 B FB_WWW_DEV
ReactFlightDOMRelayServerRuntime-prod.js 🔺+8.2% 🔺+2.4% 643 B 696 B 369 B 378 B FB_WWW_PROD
ReactFlightDOMRelayServer-dev.js +11.1% +9.3% 9.92 KB 11.02 KB 2.92 KB 3.2 KB FB_WWW_DEV
ReactFlightDOMRelayServer-prod.js 🔺+0.9% 🔺+1.0% 7.53 KB 7.6 KB 2.2 KB 2.22 KB FB_WWW_PROD
ReactFlightDOMRelayClient-dev.js +14.8% +11.2% 8.48 KB 9.74 KB 2.71 KB 3.01 KB FB_WWW_DEV
ReactFlightDOMRelayClient-prod.js 🔺+1.0% 🔺+0.7% 4.51 KB 4.56 KB 1.47 KB 1.48 KB FB_WWW_PROD

react-refresh

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactFreshRuntime-dev.js +7.0% +5.8% 18.75 KB 20.07 KB 5.52 KB 5.84 KB FB_WWW_DEV
react-refresh-babel.development.js 0.0% -0.0% 23.64 KB 23.64 KB 5.38 KB 5.38 KB NODE_DEV
react-refresh-runtime.development.js +7.1% +5.9% 18.68 KB 20.01 KB 5.51 KB 5.84 KB NODE_DEV
react-refresh-runtime.production.min.js 0.0% -0.4% 368 B 368 B 266 B 265 B NODE_PROD

react-art

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-art.development.js +0.1% +0.1% 527.24 KB 527.74 KB 113.61 KB 113.74 KB NODE_DEV
react-art.production.min.js -0.4% -0.6% 71.65 KB 71.34 KB 21.63 KB 21.5 KB NODE_PROD
ReactART-dev.js 0.0% +0.1% 589.09 KB 589.35 KB 123.51 KB 123.58 KB FB_WWW_DEV
ReactART-prod.js -0.6% -0.8% 248.66 KB 247.17 KB 42.13 KB 41.8 KB FB_WWW_PROD
react-art.development.js +0.1% +0.1% 622.37 KB 622.92 KB 131.28 KB 131.43 KB UMD_DEV
react-art.production.min.js -0.3% -0.3% 106.61 KB 106.3 KB 32.37 KB 32.28 KB UMD_PROD

react-server

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-server-flight.production.min.js -0.7% 🔺+0.5% 3.56 KB 3.53 KB 1.62 KB 1.63 KB NODE_PROD
react-server-flight-server-runtime.development.js +120.3% +58.1% 1.15 KB 2.54 KB 580 B 917 B NODE_DEV
react-server-flight-server-runtime.production.min.js 🔺+2.9% 🔺+2.5% 479 B 493 B 323 B 331 B NODE_PROD
react-server-flight.development.js +10.7% +9.0% 10.27 KB 11.37 KB 3.12 KB 3.4 KB NODE_DEV
react-server.development.js +38.7% +28.3% 3.6 KB 5 KB 1.22 KB 1.56 KB NODE_DEV
react-server.production.min.js 🔺+1.2% 🔺+0.9% 1.14 KB 1.15 KB 636 B 642 B NODE_PROD

react-is

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactIs-dev.js +2.6% +2.4% 6.65 KB 6.82 KB 1.66 KB 1.7 KB FB_WWW_DEV
ReactIs-prod.js 🔺+8.3% 🔺+9.0% 4.86 KB 5.26 KB 1.16 KB 1.27 KB FB_WWW_PROD
react-is.development.js +3.3% +3.5% 6.95 KB 7.18 KB 1.7 KB 1.75 KB UMD_DEV
react-is.production.min.js -5.4% 🔺+2.2% 2.41 KB 2.28 KB 921 B 941 B UMD_PROD
react-is.development.js +2.9% +3.7% 6.46 KB 6.65 KB 1.62 KB 1.68 KB NODE_DEV
react-is.production.min.js -3.7% 🔺+6.7% 2.38 KB 2.29 KB 849 B 906 B NODE_PROD

jest-react

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
jest-react.development.js +33.7% +24.1% 3.92 KB 5.24 KB 1.37 KB 1.7 KB NODE_DEV
jest-react.production.min.js 🔺+0.1% 🔺+0.7% 1.64 KB 1.64 KB 917 B 923 B NODE_PROD

react-noop-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-noop-renderer-server.production.min.js 0.0% -0.2% 840 B 840 B 472 B 471 B NODE_PROD
react-noop-renderer-flight-server.development.js 0.0% -0.1% 1.82 KB 1.82 KB 817 B 816 B NODE_DEV
react-noop-renderer-flight-server.production.min.js 0.0% -0.2% 957 B 957 B 516 B 515 B NODE_PROD
react-noop-renderer.development.js +4.5% +5.5% 29.43 KB 30.75 KB 5.6 KB 5.91 KB NODE_DEV
react-noop-renderer.production.min.js -0.2% 🔺+0.3% 12.22 KB 12.2 KB 3.55 KB 3.56 KB NODE_PROD
react-noop-renderer-server.development.js 0.0% -0.1% 1.59 KB 1.59 KB 745 B 744 B NODE_DEV
react-noop-renderer-flight-client.development.js 0.0% -0.1% 1.37 KB 1.37 KB 680 B 679 B NODE_DEV
react-noop-renderer-flight-client.production.min.js 0.0% -0.2% 678 B 678 B 433 B 432 B NODE_PROD
react-noop-renderer-persistent.development.js +4.5% +5.5% 29.34 KB 30.66 KB 5.59 KB 5.9 KB NODE_DEV
react-noop-renderer-persistent.production.min.js -0.2% 🔺+0.3% 12.18 KB 12.16 KB 3.55 KB 3.56 KB NODE_PROD

react-reconciler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-reconciler.development.js +0.1% +0.1% 565.31 KB 565.81 KB 119.43 KB 119.57 KB NODE_DEV
react-reconciler-reflection.development.js +3.7% +2.9% 15.55 KB 16.12 KB 4.73 KB 4.87 KB NODE_DEV
react-reconciler.production.min.js -0.4% -0.5% 76.49 KB 76.17 KB 22.7 KB 22.58 KB NODE_PROD
react-reconciler-reflection.production.min.js 0.0% -0.1% 2.57 KB 2.57 KB 1.08 KB 1.08 KB NODE_PROD

react-client

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-client-flight.development.js +11.5% +8.9% 11 KB 12.26 KB 3.41 KB 3.71 KB NODE_DEV
react-client-flight.production.min.js -0.2% 🔺+0.4% 3.13 KB 3.12 KB 1.38 KB 1.38 KB NODE_PROD

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

Size changes (stable)

Generated by 🚫 dangerJS against 2979cee

@sizebot
Copy link

sizebot commented Apr 1, 2020

Details of bundled changes.

Comparing: 9b88b78...2979cee

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom-server.browser.development.js +0.3% +0.3% 134.99 KB 135.46 KB 34.58 KB 34.69 KB UMD_DEV
ReactTestUtils-dev.js +2.9% +2.9% 56.77 KB 58.44 KB 15.29 KB 15.74 KB FB_WWW_DEV
react-dom-server.browser.production.min.js -0.5% 🔺+0.2% 20.12 KB 20.01 KB 7.4 KB 7.41 KB UMD_PROD
react-dom.profiling.min.js -0.3% -0.4% 126.91 KB 126.59 KB 39.75 KB 39.58 KB NODE_PROFILING
react-dom-unstable-fizz.browser.development.js +43.7% +27.4% 3.35 KB 4.82 KB 1.27 KB 1.62 KB UMD_DEV
ReactDOM-dev.js 0.0% 0.0% 963.04 KB 963.3 KB 214.12 KB 214.19 KB FB_WWW_DEV
react-dom-unstable-fizz.browser.production.min.js 🔺+1.2% 🔺+1.0% 1.19 KB 1.2 KB 699 B 706 B UMD_PROD
ReactDOM-prod.js -0.5% -0.9% 405.25 KB 403.08 KB 73.54 KB 72.88 KB FB_WWW_PROD
ReactDOM-profiling.js -0.6% -0.9% 416.31 KB 413.92 KB 75.39 KB 74.73 KB FB_WWW_PROFILING
react-dom-unstable-fizz.browser.development.js +47.4% +29.1% 2.95 KB 4.35 KB 1.18 KB 1.52 KB NODE_DEV
react-dom-unstable-fizz.browser.production.min.js 🔺+1.4% 🔺+1.3% 1 KB 1.02 KB 610 B 618 B NODE_PROD
react-dom-test-utils.development.js +3.0% +2.9% 59.24 KB 60.99 KB 15.65 KB 16.11 KB UMD_DEV
react-dom-test-utils.production.min.js 0.0% -0.0% 12.26 KB 12.26 KB 4.55 KB 4.55 KB UMD_PROD
ReactDOMTesting-dev.js 0.0% 0.0% 919 KB 919.26 KB 205.28 KB 205.36 KB FB_WWW_DEV
ReactDOMTesting-prod.js -0.5% -1.0% 391.96 KB 389.85 KB 71.67 KB 70.99 KB FB_WWW_PROD
react-dom-test-utils.development.js +3.1% +3.1% 54.7 KB 56.38 KB 15.04 KB 15.5 KB NODE_DEV
ReactDOMTesting-profiling.js -0.5% -1.0% 391.96 KB 389.85 KB 71.67 KB 70.99 KB FB_WWW_PROFILING
react-dom-server.node.development.js +0.3% +0.3% 129.29 KB 129.71 KB 34.42 KB 34.52 KB NODE_DEV
react-dom-server.node.production.min.js -0.5% 🔺+0.3% 20.43 KB 20.33 KB 7.51 KB 7.53 KB NODE_PROD
react-dom-server.browser.development.js +0.3% +0.3% 128.07 KB 128.5 KB 34.16 KB 34.26 KB NODE_DEV
react-dom-server.browser.production.min.js -0.5% 🔺+0.3% 20.02 KB 19.92 KB 7.36 KB 7.38 KB NODE_PROD
react-dom.development.js +0.1% +0.1% 924.16 KB 924.7 KB 202.17 KB 202.32 KB UMD_DEV
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 57.71 KB 57.71 KB 14.37 KB 14.36 KB UMD_DEV
react-dom.production.min.js -0.3% -0.5% 122.79 KB 122.43 KB 39.27 KB 39.08 KB UMD_PROD
ReactDOMForked-dev.js 0.0% 0.0% 963.04 KB 963.3 KB 214.12 KB 214.19 KB FB_WWW_DEV
react-dom-unstable-native-dependencies.production.min.js -0.1% -0.2% 10.32 KB 10.31 KB 3.5 KB 3.49 KB UMD_PROD
ReactDOMServer-dev.js +0.3% +0.3% 135.59 KB 135.99 KB 34.64 KB 34.74 KB FB_WWW_DEV
react-dom.profiling.min.js -0.3% -0.5% 126.62 KB 126.26 KB 40.55 KB 40.34 KB UMD_PROFILING
ReactDOMForked-prod.js -0.5% -0.9% 405.25 KB 403.08 KB 73.54 KB 72.88 KB FB_WWW_PROD
ReactDOMServer-prod.js -0.0% 🔺+0.3% 45.9 KB 45.87 KB 10.66 KB 10.69 KB FB_WWW_PROD
react-dom.development.js +0.1% +0.1% 880 KB 880.5 KB 199.69 KB 199.83 KB NODE_DEV
ReactDOMForked-profiling.js -0.6% -0.9% 416.31 KB 413.92 KB 75.39 KB 74.73 KB FB_WWW_PROFILING
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 54.72 KB 54.72 KB 14.14 KB 14.14 KB NODE_DEV
react-dom-unstable-fizz.node.development.js +37.8% +25.1% 3.69 KB 5.09 KB 1.34 KB 1.68 KB NODE_DEV
react-dom.production.min.js -0.3% -0.5% 122.93 KB 122.61 KB 38.46 KB 38.28 KB NODE_PROD
react-dom-unstable-native-dependencies.production.min.js 0.0% -0.1% 10.05 KB 10.06 KB 3.38 KB 3.38 KB NODE_PROD
react-dom-unstable-fizz.node.production.min.js 🔺+1.2% 🔺+0.8% 1.16 KB 1.17 KB 663 B 668 B NODE_PROD

react-flight-dom-webpack

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-flight-dom-webpack-server.browser.development.js +11.0% +9.0% 10.59 KB 11.75 KB 3.08 KB 3.36 KB UMD_DEV
react-flight-dom-webpack-server.browser.production.min.js -0.6% 🔺+0.9% 3.48 KB 3.46 KB 1.64 KB 1.65 KB UMD_PROD
react-flight-dom-webpack-server-runtime.development.js +118.5% +56.4% 1.17 KB 2.56 KB 597 B 934 B NODE_DEV
react-flight-dom-webpack-server-runtime.production.min.js 🔺+2.8% 🔺+2.1% 497 B 511 B 340 B 347 B NODE_PROD
react-flight-dom-webpack-server.node.development.js +10.3% +8.5% 10.69 KB 11.8 KB 3.25 KB 3.53 KB NODE_DEV
react-flight-dom-webpack-server.node.production.min.js -0.7% 🔺+0.6% 3.46 KB 3.43 KB 1.57 KB 1.58 KB NODE_PROD
react-flight-dom-webpack-server.browser.development.js +11.3% +9.3% 9.75 KB 10.85 KB 2.98 KB 3.26 KB NODE_DEV
react-flight-dom-webpack-server.browser.production.min.js -0.8% 🔺+0.7% 3.3 KB 3.27 KB 1.56 KB 1.57 KB NODE_PROD
react-flight-dom-webpack.development.js +9.4% +7.6% 14.05 KB 15.37 KB 4.02 KB 4.32 KB UMD_DEV
react-flight-dom-webpack.production.min.js -0.2% 🔺+0.5% 3.72 KB 3.71 KB 1.65 KB 1.66 KB UMD_PROD
react-flight-dom-webpack.development.js +9.7% +7.9% 13.02 KB 14.28 KB 3.9 KB 4.21 KB NODE_DEV
react-flight-dom-webpack.production.min.js -0.2% 🔺+0.4% 3.54 KB 3.53 KB 1.56 KB 1.57 KB NODE_PROD

react-test-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-test-renderer.development.js +0.1% +0.1% 560.23 KB 560.78 KB 116.49 KB 116.64 KB UMD_DEV
react-test-renderer.production.min.js -0.4% -0.5% 73.65 KB 73.34 KB 22.46 KB 22.35 KB UMD_PROD
react-test-renderer-shallow.development.js +1.8% +2.2% 37.95 KB 38.63 KB 9.19 KB 9.4 KB UMD_DEV
react-test-renderer-shallow.production.min.js -0.6% 🔺+1.3% 12.82 KB 12.74 KB 3.92 KB 3.97 KB UMD_PROD
react-test-renderer.development.js +0.1% +0.1% 534.17 KB 534.67 KB 115.06 KB 115.19 KB NODE_DEV
react-test-renderer.production.min.js -0.4% -0.6% 73.47 KB 73.17 KB 22.19 KB 22.04 KB NODE_PROD
ReactTestRenderer-dev.js 0.0% +0.1% 568.25 KB 568.51 KB 119.79 KB 119.87 KB FB_WWW_DEV

react-flight-dom-relay

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactFlightDOMRelayServerRuntime-dev.js +124.3% +60.8% 1.11 KB 2.5 KB 554 B 891 B FB_WWW_DEV
ReactFlightDOMRelayClient-dev.js +14.8% +11.2% 8.48 KB 9.74 KB 2.71 KB 3.01 KB FB_WWW_DEV
ReactFlightDOMRelayClient-prod.js 🔺+1.0% 🔺+0.7% 4.51 KB 4.56 KB 1.47 KB 1.48 KB FB_WWW_PROD
ReactFlightDOMRelayServerRuntime-prod.js 🔺+8.2% 🔺+2.4% 643 B 696 B 369 B 378 B FB_WWW_PROD
ReactFlightDOMRelayServer-dev.js +11.1% +9.3% 9.92 KB 11.02 KB 2.92 KB 3.2 KB FB_WWW_DEV
ReactFlightDOMRelayServer-prod.js 🔺+0.9% 🔺+1.0% 7.53 KB 7.6 KB 2.2 KB 2.22 KB FB_WWW_PROD

react-refresh

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactFreshRuntime-dev.js +7.0% +5.8% 18.75 KB 20.07 KB 5.52 KB 5.84 KB FB_WWW_DEV
react-refresh-babel.development.js 0.0% -0.0% 23.66 KB 23.66 KB 5.39 KB 5.39 KB NODE_DEV
react-refresh-runtime.development.js +7.1% +5.9% 18.7 KB 20.02 KB 5.52 KB 5.85 KB NODE_DEV
react-refresh-runtime.production.min.js 0.0% -0.4% 381 B 381 B 274 B 273 B NODE_PROD

react-art

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactART-dev.js 0.0% +0.1% 579.01 KB 579.27 KB 121.49 KB 121.56 KB FB_WWW_DEV
ReactART-prod.js -0.7% -0.8% 241.2 KB 239.57 KB 40.88 KB 40.54 KB FB_WWW_PROD
react-art.development.js +0.1% +0.1% 642.65 KB 643.2 KB 134.96 KB 135.1 KB UMD_DEV
react-art.production.min.js -0.3% -0.5% 109.23 KB 108.91 KB 33.11 KB 32.95 KB UMD_PROD
react-art.development.js +0.1% +0.1% 546.73 KB 547.23 KB 117.35 KB 117.48 KB NODE_DEV
react-art.production.min.js -0.4% -0.6% 74.21 KB 73.9 KB 22.29 KB 22.16 KB NODE_PROD

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactNativeRenderer-dev.js +0.1% +0.1% 648.15 KB 648.64 KB 139.75 KB 139.88 KB RN_FB_DEV
ReactNativeRenderer-prod.js -0.5% -0.7% 270.22 KB 268.86 KB 46.85 KB 46.53 KB RN_FB_PROD
ReactNativeRenderer-profiling.js -0.5% -0.8% 282.04 KB 280.74 KB 49.13 KB 48.75 KB RN_FB_PROFILING
ReactFabric-dev.js +0.1% +0.1% 627.43 KB 627.92 KB 134.98 KB 135.13 KB RN_OSS_DEV
ReactFabric-prod.js -0.5% -0.7% 262.03 KB 260.7 KB 45.31 KB 44.98 KB RN_OSS_PROD
ReactFabric-profiling.js -0.5% -0.7% 273.86 KB 272.59 KB 47.57 KB 47.22 KB RN_OSS_PROFILING
ReactFabric-dev.js +0.1% +0.1% 629.84 KB 630.33 KB 135.3 KB 135.44 KB RN_FB_DEV
ReactFabric-prod.js -0.5% -0.7% 262.19 KB 260.85 KB 45.35 KB 45.01 KB RN_FB_PROD
ReactNativeRenderer-dev.js +0.1% +0.1% 645.75 KB 646.24 KB 139.42 KB 139.55 KB RN_OSS_DEV
ReactFabric-profiling.js -0.5% -0.7% 274.01 KB 272.74 KB 47.6 KB 47.25 KB RN_FB_PROFILING
ReactNativeRenderer-prod.js -0.5% -0.7% 270.07 KB 268.71 KB 46.82 KB 46.5 KB RN_OSS_PROD
ReactNativeRenderer-profiling.js -0.5% -0.8% 281.9 KB 280.6 KB 49.1 KB 48.72 KB RN_OSS_PROFILING

react-noop-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-noop-renderer.development.js +4.5% +5.5% 29.44 KB 30.76 KB 5.6 KB 5.91 KB NODE_DEV
react-noop-renderer-flight-client.development.js 0.0% -0.3% 1.38 KB 1.38 KB 690 B 688 B NODE_DEV
react-noop-renderer.production.min.js -0.2% 🔺+0.3% 12.23 KB 12.21 KB 3.56 KB 3.57 KB NODE_PROD
react-noop-renderer-flight-client.production.min.js 0.0% -0.2% 691 B 691 B 441 B 440 B NODE_PROD
react-noop-renderer-flight-server.development.js 0.0% -0.1% 1.84 KB 1.84 KB 826 B 825 B NODE_DEV
react-noop-renderer-server.development.js 0.0% -0.1% 1.6 KB 1.6 KB 754 B 753 B NODE_DEV
react-noop-renderer-persistent.development.js +4.5% +5.5% 29.35 KB 30.67 KB 5.59 KB 5.9 KB NODE_DEV
react-noop-renderer-persistent.production.min.js -0.2% 🔺+0.3% 12.19 KB 12.17 KB 3.55 KB 3.56 KB NODE_PROD

react-server

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-server-flight-server-runtime.development.js +119.0% +57.0% 1.17 KB 2.55 KB 589 B 925 B NODE_DEV
react-server-flight-server-runtime.production.min.js 🔺+2.8% 🔺+2.1% 492 B 506 B 332 B 339 B NODE_PROD
react-server-flight.development.js +10.7% +9.0% 10.29 KB 11.39 KB 3.13 KB 3.41 KB NODE_DEV
react-server-flight.production.min.js -0.7% 🔺+0.5% 3.57 KB 3.54 KB 1.63 KB 1.64 KB NODE_PROD
react-server.development.js +38.6% +28.1% 3.62 KB 5.01 KB 1.22 KB 1.57 KB NODE_DEV
react-server.production.min.js 🔺+1.2% 🔺+0.9% 1.15 KB 1.16 KB 644 B 650 B NODE_PROD

react-is

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactIs-dev.js +2.6% +2.4% 6.65 KB 6.82 KB 1.66 KB 1.7 KB FB_WWW_DEV
react-is.development.js +3.3% +3.6% 6.97 KB 7.19 KB 1.7 KB 1.76 KB UMD_DEV
react-is.production.min.js -5.4% 🔺+2.3% 2.43 KB 2.3 KB 928 B 949 B UMD_PROD
react-is.development.js +2.9% +3.8% 6.47 KB 6.66 KB 1.63 KB 1.69 KB NODE_DEV
react-is.production.min.js -3.6% 🔺+6.6% 2.39 KB 2.3 KB 858 B 915 B NODE_PROD
ReactIs-prod.js 🔺+8.3% 🔺+9.0% 4.86 KB 5.26 KB 1.16 KB 1.27 KB FB_WWW_PROD

react-reconciler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-reconciler-reflection.development.js +3.7% +2.9% 15.56 KB 16.13 KB 4.74 KB 4.88 KB NODE_DEV
react-reconciler.development.js +0.1% +0.1% 587.16 KB 587.66 KB 123.68 KB 123.82 KB NODE_DEV
react-reconciler.production.min.js -0.4% -0.5% 79.46 KB 79.14 KB 23.41 KB 23.29 KB NODE_PROD

jest-react

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
jest-react.development.js +33.6% +24.0% 3.93 KB 5.26 KB 1.38 KB 1.71 KB NODE_DEV
jest-react.production.min.js 🔺+0.1% 🔺+0.8% 1.65 KB 1.65 KB 925 B 932 B NODE_PROD

react-client

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-client-flight.development.js +11.4% +8.9% 11.01 KB 12.27 KB 3.42 KB 3.72 KB NODE_DEV
react-client-flight.production.min.js -0.2% 🔺+0.4% 3.14 KB 3.13 KB 1.39 KB 1.39 KB NODE_PROD

ReactDOM: size: -0.5%, gzip: 🔺+0.2%

Size changes (experimental)

Generated by 🚫 dangerJS against 2979cee

Copy link
Contributor

@trueadm trueadm left a comment

Choose a reason for hiding this comment

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

The Symbol stuff looks hacky, but I guess is fine for now. Can we reach out, like we have in the past, to the GCC folks and get them to help us out?

There are newer versions but they don't yet have corresponding releases
of google-closure-compiler-osx.
Provides a little better output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants