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

Remove scheduler from React package dependencies #15616

Merged
merged 1 commit into from
May 10, 2019

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented May 10, 2019

Scheduler is used by the renderers, but not the isomorphic package.

I checked the history to figure out why it was originally added as a dep. It looks like it was because the UMD build of react includes Scheduler inline instead of treating it as an external: #13509

We may need to reconsider our UMD strategy later once the public Scheduler API is stable. (Personally I would prefer to drop UMD support entirely.)

Regardless we can remove it from package.json. I confirmed that the UMD bundle still includes Scheduler.

Scheduler is used by the renderers, but not the isomorphic package.
@acdlite acdlite requested a review from bvaughn May 10, 2019 17:51
Copy link
Contributor

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

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

Hm... I'm not sure now why this was added. At first I thought it was required by our Rollup config but I guess that's not the case because scheduler is one of our known globals.

Maybe this was meant to signal the fact that the dependency exists, conceptually? I don't know.

@acdlite acdlite merged commit 5b6eb55 into facebook:master May 10, 2019
@sizebot
Copy link

sizebot commented May 10, 2019

Details of bundled changes.

Comparing: 90f54d7...b1b96f2

react

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react.development.js +10.3% +12.1% 70.09 KB 77.32 KB 18.04 KB 20.23 KB NODE_DEV
react.production.min.js 🔺+20.7% 🔺+18.5% 6.48 KB 7.82 KB 2.69 KB 3.18 KB NODE_PROD
React-dev.js +10.7% +12.7% 68.36 KB 75.7 KB 17.38 KB 19.59 KB FB_WWW_DEV
React-prod.js 🔺+20.3% 🔺+17.7% 16.32 KB 19.64 KB 4.32 KB 5.08 KB FB_WWW_PROD
React-profiling.js +20.3% +17.7% 16.32 KB 19.64 KB 4.32 KB 5.08 KB FB_WWW_PROFILING

Generated by 🚫 dangerJS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants