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

Add Relay Flight Build #18242

Merged
merged 5 commits into from
Mar 7, 2020
Merged

Conversation

sebmarkbage
Copy link
Collaborator

@sebmarkbage sebmarkbage commented Mar 7, 2020

This will be used to host a Flight Server and Flight Client inside Relay. Currently, there's only an FB www build because I'm not sure how we'll want to sync it to the OSS repo yet. Most likely it'll end up being an RN build instead since RN is Relay's source of truth.

We'll need another host config option for this configuration so I added dom-relay for that.

This is currently encoding to a JSON array of strings but I'll refactor to a different format/layering in a follow up.

Renamed some flight files while I was at it.

For consistency with react-server. Currently this just includes flight
but it could be expanded to include the whole reconciler.
@sebmarkbage sebmarkbage requested a review from gaearon March 7, 2020 02:52
@facebook-github-bot facebook-github-bot added React Core Team Opened by a member of the React Core Team CLA Signed labels Mar 7, 2020
@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 7, 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 cb97e8e:

Sandbox Source
zealous-pare-85s8p Configuration

@sizebot
Copy link

sizebot commented Mar 7, 2020

Details of bundled changes.

Comparing: 7a1691c...cb97e8e

react-flight-dom-relay

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactFlightDOMRelayServer-dev.js n/a n/a 0 B 7.85 KB 0 B 2.56 KB FB_WWW_DEV
ReactFlightDOMRelayServer-prod.js n/a n/a 0 B 4.96 KB 0 B 1.54 KB FB_WWW_PROD
ReactFlightDOMRelayClient-dev.js n/a n/a 0 B 5.41 KB 0 B 1.75 KB FB_WWW_DEV
ReactFlightDOMRelayClient-prod.js n/a n/a 0 B 4.02 KB 0 B 1.29 KB FB_WWW_PROD

react-client

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-client-flight.development.js n/a n/a 0 B 7.17 KB 0 B 2.24 KB NODE_DEV
react-client-flight.production.min.js n/a n/a 0 B 2.45 KB 0 B 1.16 KB NODE_PROD

Size changes (stable)

Generated by 🚫 dangerJS against cb97e8e

@sizebot
Copy link

sizebot commented Mar 7, 2020

Details of bundled changes.

Comparing: 7a1691c...cb97e8e

react-flight-dom-relay

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactFlightDOMRelayClient-dev.js n/a n/a 0 B 5.41 KB 0 B 1.75 KB FB_WWW_DEV
ReactFlightDOMRelayClient-prod.js n/a n/a 0 B 4.02 KB 0 B 1.29 KB FB_WWW_PROD
ReactFlightDOMRelayServer-dev.js n/a n/a 0 B 7.85 KB 0 B 2.56 KB FB_WWW_DEV
ReactFlightDOMRelayServer-prod.js n/a n/a 0 B 4.96 KB 0 B 1.54 KB FB_WWW_PROD

react-client

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-client-flight.development.js n/a n/a 0 B 7.18 KB 0 B 2.25 KB NODE_DEV
react-client-flight.production.min.js n/a n/a 0 B 2.46 KB 0 B 1.16 KB NODE_PROD

Size changes (experimental)

Generated by 🚫 dangerJS against cb97e8e

This will be the config specifically for streaming purposes.
There will be other configs for other purposes.
@sebmarkbage sebmarkbage merged commit bdc5cc4 into facebook:master Mar 7, 2020
sthagen added a commit to sthagen/facebook-react that referenced this pull request Mar 7, 2020
@josephsavona
Copy link
Contributor

Thanks!

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.

5 participants