-
Notifications
You must be signed in to change notification settings - Fork 49.5k
Description
Currently, the react-dom
and react-art
packages each have their own copy of react-reconciler
compiled into them. This means, if you use them together, you get two copies bundled in your app. react-reconciler
is around ~93 KB minified, or ~30 KB min + gzip, which is not super small.
This also affects other renderers like react-three-fiber, react-pixi, react-pdf, etc. Each of these depends on the react-reconciler
package from npm, but react-dom
also has a separate copy meaning if you use them you get at least two copies.
It would be nice if react-dom
depended on the react-reconciler
package from npm rather than compiling an additional copy into the distribution. This would reduce the bundle size of applications using multiple renderers by at least 30 KB min + gzipped.
Is there a reason this is not already the case?