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 checkReact #21132

Merged
merged 1 commit into from
Mar 30, 2021
Merged

Remove checkReact #21132

merged 1 commit into from
Mar 30, 2021

Conversation

sebmarkbage
Copy link
Collaborator

@sebmarkbage sebmarkbage commented Mar 29, 2021

This was added in #10406 but it has no context for why.

I don't know what this is useful for because if you have a circular or error in a module, most CommonJS implementations would return an empty object so this wouldn't actually trigger. The test isn't actually testing a real scenario in Jest.

I suspect it was only useful at FB at some point but is not applicable to ES modules at FB nor elsewhere.

By importing everything we force the whole object to materialize and break module splitting.

I don't know what this is useful for but I suspect it was only useful at
FB and is not applicable to ES modules at FB nor elsewhere.
@sebmarkbage sebmarkbage requested a review from gaearon March 29, 2021 22:27
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Mar 29, 2021
@sizebot
Copy link

sizebot commented Mar 29, 2021

Comparing: 64983aa...c2288dd

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.min.js = 122.30 kB 122.27 kB = 39.25 kB 39.24 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 128.81 kB 128.78 kB = 41.33 kB 41.32 kB
facebook-www/ReactDOM-prod.classic.js = 404.53 kB 404.48 kB = 75.21 kB 75.20 kB
facebook-www/ReactDOM-prod.modern.js = 392.79 kB 392.73 kB = 73.33 kB 73.32 kB
facebook-www/ReactDOMForked-prod.classic.js = 404.53 kB 404.48 kB = 75.21 kB 75.20 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against c2288dd

@sebmarkbage sebmarkbage merged commit e40f0b2 into facebook:master Mar 30, 2021
acdlite pushed a commit to acdlite/react that referenced this pull request Apr 11, 2021
I don't know what this is useful for but I suspect it was only useful at
FB and is not applicable to ES modules at FB nor elsewhere.
acdlite pushed a commit to acdlite/react that referenced this pull request Apr 13, 2021
I don't know what this is useful for but I suspect it was only useful at
FB and is not applicable to ES modules at FB nor elsewhere.
acdlite pushed a commit to acdlite/react that referenced this pull request Apr 16, 2021
I don't know what this is useful for but I suspect it was only useful at
FB and is not applicable to ES modules at FB nor elsewhere.
acdlite pushed a commit to acdlite/react that referenced this pull request Apr 16, 2021
I don't know what this is useful for but I suspect it was only useful at
FB and is not applicable to ES modules at FB nor elsewhere.
acdlite pushed a commit to acdlite/react that referenced this pull request Apr 19, 2021
I don't know what this is useful for but I suspect it was only useful at
FB and is not applicable to ES modules at FB nor elsewhere.
koto pushed a commit to koto/react that referenced this pull request Jun 15, 2021
I don't know what this is useful for but I suspect it was only useful at
FB and is not applicable to ES modules at FB nor elsewhere.
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