-
Notifications
You must be signed in to change notification settings - Fork 48.8k
[Flight] Move Flight DOM to a Webpack Specific Package #17372
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
Conversation
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 1af0410:
|
Details of bundled changes.Comparing: 532810a...1af0410 react-flight-dom-webpack
Size changes (experimental) |
Details of bundled changes.Comparing: 532810a...1af0410 react-flight-dom-webpack
Size changes (stable) |
f17ec52
to
7afac56
Compare
"dependencies": { | ||
"loose-envify": "^1.1.0", | ||
"object-assign": "^4.1.1", | ||
"webpack": "^4.41.2" |
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.
Should be a peer?
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.
I think it should be a peer but otherwise seems fine.
We'll have Webpack specific coupling so we need to ensure that it can be versioned separately from various Webpack versions. We'll also have builds for other bundlers in the future.
This was an integration test. We can add to it.
We'll have Webpack specific coupling so we need to ensure that it can be versioned separately from various Webpack versions. We'll also have builds for other bundlers in the future.
There's a matrix of configurations that include the server environment (node vs browser streams), client environment (browser vs RN), format (DOM vs RN), bundler (Webpack, Parcel, Rollup...) and possibly others. Each yielding a possible new build.
In practice, we only use a few of those combinations to create optimal builds.
Technically, the server doesn't have to be Webpack specific if the Babel transform is, but it might be good to have the transform be agnostic. E.g. it allows for the Node env and Webpack compile in parallel. So therefore I think it's better that the transform is agnostic and then we replace it with bundle meta data at runtime using a Webpack specific server.