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

Bundle config: inline internal hook wrapper #28978

Merged
merged 1 commit into from
May 3, 2024
Merged

Conversation

kassens
Copy link
Member

@kassens kassens commented May 2, 2024

Bundle config: inline internal hook wrapper

Instead of reading this wrapper from 2 files for "start" and "end" and then string modifying the templates, just inline them like the other wrappers in this file.

Stack created with Sapling. Best reviewed with ReviewStack.

Instead of reading this wrapper from 2 files for "start" and "end" and then string modifying the templates, just inline them like the other wrappers in this file.
@react-sizebot
Copy link

Comparing: 73bcdfb...63faec5

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.66 kB 6.66 kB +0.05% 1.82 kB 1.82 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 492.61 kB 492.61 kB = 87.88 kB 87.88 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.67 kB 6.67 kB +0.05% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 498.86 kB 498.86 kB = 88.93 kB 88.93 kB
facebook-www/ReactDOM-prod.classic.js = 591.22 kB 591.22 kB = 103.96 kB 103.96 kB
facebook-www/ReactDOM-prod.modern.js = 567.44 kB 567.44 kB = 100.36 kB 100.36 kB
oss-experimental/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js = 5.85 kB 5.72 kB = 1.88 kB 1.86 kB
oss-stable-semver/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js = 5.85 kB 5.72 kB = 1.88 kB 1.86 kB
oss-stable/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js = 5.85 kB 5.72 kB = 1.88 kB 1.86 kB
oss-experimental/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js = 5.80 kB 5.67 kB = 1.86 kB 1.84 kB
oss-stable-semver/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js = 5.80 kB 5.67 kB = 1.86 kB 1.84 kB
oss-stable/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js = 5.80 kB 5.67 kB = 1.86 kB 1.84 kB
oss-experimental/use-sync-external-store/cjs/use-sync-external-store.development.js = 2.77 kB 2.64 kB = 1.25 kB 1.23 kB
oss-stable-semver/use-sync-external-store/cjs/use-sync-external-store.development.js = 2.77 kB 2.64 kB = 1.25 kB 1.23 kB
oss-stable/use-sync-external-store/cjs/use-sync-external-store.development.js = 2.77 kB 2.64 kB = 1.25 kB 1.23 kB
oss-experimental/use-subscription/cjs/use-subscription.development.js = 1.51 kB 1.38 kB = 0.66 kB 0.64 kB
oss-stable-semver/use-subscription/cjs/use-subscription.development.js = 1.51 kB 1.38 kB = 0.66 kB 0.64 kB
oss-stable/use-subscription/cjs/use-subscription.development.js = 1.51 kB 1.38 kB = 0.66 kB 0.64 kB
test_utils/ReactAllWarnings.js Deleted 64.26 kB 0.00 kB Deleted 16.02 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react-dom/cjs/react-dom.development.js = 24.50 kB 24.37 kB = 6.26 kB 6.25 kB
oss-stable/react-dom/cjs/react-dom.development.js = 24.49 kB 24.36 kB = 6.26 kB 6.24 kB
oss-stable-semver/react-dom/cjs/react-dom.development.js = 24.46 kB 24.33 kB = 6.23 kB 6.22 kB
facebook-www/Scheduler-dev.classic.js = 22.71 kB 22.58 kB = 5.92 kB 5.90 kB
facebook-www/Scheduler-dev.modern.js = 22.71 kB 22.58 kB = 5.92 kB 5.90 kB
facebook-react-native/scheduler/cjs/Scheduler-dev.js = 17.21 kB 17.09 kB = 4.86 kB 4.84 kB
oss-experimental/scheduler/cjs/scheduler.development.js = 17.19 kB 17.06 kB = 4.83 kB 4.81 kB
oss-stable-semver/scheduler/cjs/scheduler.development.js = 17.19 kB 17.06 kB = 4.83 kB 4.81 kB
oss-stable/scheduler/cjs/scheduler.development.js = 17.19 kB 17.06 kB = 4.83 kB 4.81 kB
oss-experimental/use-sync-external-store/cjs/use-sync-external-store-shim.development.js = 8.39 kB 8.26 kB = 3.18 kB 3.16 kB
oss-stable-semver/use-sync-external-store/cjs/use-sync-external-store-shim.development.js = 8.39 kB 8.26 kB = 3.18 kB 3.16 kB
oss-stable/use-sync-external-store/cjs/use-sync-external-store-shim.development.js = 8.39 kB 8.26 kB = 3.18 kB 3.16 kB
oss-experimental/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js = 7.80 kB 7.67 kB = 3.08 kB 3.06 kB
oss-stable-semver/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js = 7.80 kB 7.67 kB = 3.08 kB 3.06 kB
oss-stable/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js = 7.80 kB 7.67 kB = 3.08 kB 3.06 kB
oss-experimental/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js = 5.85 kB 5.72 kB = 1.88 kB 1.86 kB
oss-stable-semver/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js = 5.85 kB 5.72 kB = 1.88 kB 1.86 kB
oss-stable/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js = 5.85 kB 5.72 kB = 1.88 kB 1.86 kB
oss-experimental/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js = 5.80 kB 5.67 kB = 1.86 kB 1.84 kB
oss-stable-semver/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js = 5.80 kB 5.67 kB = 1.86 kB 1.84 kB
oss-stable/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js = 5.80 kB 5.67 kB = 1.86 kB 1.84 kB
oss-experimental/use-sync-external-store/cjs/use-sync-external-store.development.js = 2.77 kB 2.64 kB = 1.25 kB 1.23 kB
oss-stable-semver/use-sync-external-store/cjs/use-sync-external-store.development.js = 2.77 kB 2.64 kB = 1.25 kB 1.23 kB
oss-stable/use-sync-external-store/cjs/use-sync-external-store.development.js = 2.77 kB 2.64 kB = 1.25 kB 1.23 kB
oss-experimental/use-subscription/cjs/use-subscription.development.js = 1.51 kB 1.38 kB = 0.66 kB 0.64 kB
oss-stable-semver/use-subscription/cjs/use-subscription.development.js = 1.51 kB 1.38 kB = 0.66 kB 0.64 kB
oss-stable/use-subscription/cjs/use-subscription.development.js = 1.51 kB 1.38 kB = 0.66 kB 0.64 kB
test_utils/ReactAllWarnings.js Deleted 64.26 kB 0.00 kB Deleted 16.02 kB 0.00 kB

Generated by 🚫 dangerJS against 63faec5

Copy link
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

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

@kassens kassens merged commit 0a0a3af into facebook:main May 3, 2024
38 checks passed
@kassens kassens deleted the pr28978 branch May 3, 2024 18:08
github-actions bot pushed a commit that referenced this pull request May 3, 2024
Bundle config: inline internal hook wrapper

Instead of reading this wrapper from 2 files for "start" and "end" and
then string modifying the templates, just inline them like the other
wrappers in this file.

DiffTrain build for commit 0a0a3af.
github-actions bot pushed a commit that referenced this pull request May 3, 2024
Bundle config: inline internal hook wrapper

Instead of reading this wrapper from 2 files for "start" and "end" and
then string modifying the templates, just inline them like the other
wrappers in this file.

DiffTrain build for [0a0a3af](0a0a3af)
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