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

Delete use of source in JSX runtime #28433

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Feb 23, 2024

Only remaining place it was being used was in a warning message.

@facebook-github-bot facebook-github-bot added the React Core Team Opened by a member of the React Core Team label Feb 23, 2024
} else {
info += getDeclarationErrorAddendum();
}
info += getDeclarationErrorAddendum();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@sebmarkbage I assume I can delete this too? All it does is print "Check the render method of " which is some 2017 bullshit anyway.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yea in this case you have the full stack trace.

In the key warning it’s nice to have the owner of the child rather than the parent where the warning happens.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

anticipated my next question :) Thanks

@react-sizebot
Copy link

react-sizebot commented Feb 23, 2024

Comparing: 47beb96...3018f45

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 = 176.86 kB 176.86 kB = 55.14 kB 55.14 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 179.00 kB 179.00 kB = 55.78 kB 55.78 kB
facebook-www/ReactDOM-prod.classic.js = 591.78 kB 591.78 kB = 104.51 kB 104.51 kB
facebook-www/ReactDOM-prod.modern.js = 575.07 kB 575.07 kB = 101.51 kB 101.51 kB
test_utils/ReactAllWarnings.js Deleted 66.50 kB 0.00 kB Deleted 16.27 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react/umd/react.development.js = 126.03 kB 125.29 kB = 32.51 kB 32.34 kB
oss-stable/react/umd/react.development.js = 122.22 kB 121.49 kB = 31.40 kB 31.20 kB
oss-stable-semver/react/umd/react.development.js = 122.20 kB 121.46 kB = 31.37 kB 31.17 kB
oss-experimental/react/cjs/react.development.js = 102.87 kB 102.18 kB = 27.78 kB 27.61 kB
oss-stable/react/cjs/react.development.js = 99.20 kB 98.51 kB = 26.70 kB 26.53 kB
oss-stable-semver/react/cjs/react.development.js = 99.18 kB 98.49 kB = 26.67 kB 26.50 kB
facebook-www/React-dev.classic.js = 123.34 kB 122.36 kB = 29.44 kB 29.24 kB
facebook-www/React-dev.modern.js = 121.76 kB 120.78 kB = 29.05 kB 28.86 kB
oss-experimental/react/cjs/react.react-server.development.js = 84.05 kB 83.36 kB = 23.53 kB 23.36 kB
oss-stable/react/cjs/react.react-server.development.js = 76.49 kB 75.80 kB = 21.22 kB 21.05 kB
oss-stable-semver/react/cjs/react.react-server.development.js = 76.46 kB 75.78 kB = 21.19 kB 21.02 kB
facebook-react-native/react/cjs/React-dev.js = 109.04 kB 108.05 kB = 25.95 kB 25.76 kB
facebook-www/ReactServer-dev.modern.js = 91.47 kB 90.49 kB = 21.75 kB 21.56 kB
oss-experimental/react/cjs/react-jsx-runtime.react-server.development.js = 44.23 kB 43.76 kB = 13.22 kB 13.11 kB
oss-experimental/react/cjs/react-jsx-runtime.development.js = 44.17 kB 43.69 kB = 13.20 kB 13.09 kB
oss-experimental/react/cjs/react-jsx-dev-runtime.development.js = 42.94 kB 42.46 kB = 12.84 kB 12.73 kB
oss-stable-semver/react/cjs/react-jsx-runtime.react-server.development.js = 42.52 kB 42.05 kB = 12.56 kB 12.45 kB
oss-stable/react/cjs/react-jsx-runtime.react-server.development.js = 42.52 kB 42.05 kB = 12.56 kB 12.45 kB
oss-stable-semver/react/cjs/react-jsx-runtime.development.js = 42.45 kB 41.98 kB = 12.54 kB 12.43 kB
oss-stable/react/cjs/react-jsx-runtime.development.js = 42.45 kB 41.98 kB = 12.54 kB 12.43 kB
facebook-www/JSXDEVRuntime-dev.classic.js = 47.97 kB 47.43 kB = 12.63 kB 12.51 kB
facebook-www/JSXDEVRuntime-dev.modern.js = 47.96 kB 47.43 kB = 12.63 kB 12.51 kB
oss-stable-semver/react/cjs/react-jsx-dev-runtime.development.js = 41.22 kB 40.75 kB = 12.19 kB 12.07 kB
oss-stable/react/cjs/react-jsx-dev-runtime.development.js = 41.22 kB 40.75 kB = 12.19 kB 12.07 kB
facebook-react-native/react/cjs/JSXRuntime-dev.js = 35.62 kB 35.08 kB = 9.64 kB 9.52 kB
facebook-react-native/react/cjs/JSXDEVRuntime-dev.js = 34.21 kB 33.68 kB = 9.26 kB 9.14 kB
test_utils/ReactAllWarnings.js Deleted 66.50 kB 0.00 kB Deleted 16.27 kB 0.00 kB

Generated by 🚫 dangerJS against 3018f45

Only remaining place it was being used was in a warning message.
@acdlite acdlite merged commit 16d3f78 into facebook:main Feb 23, 2024
37 checks passed
github-actions bot pushed a commit that referenced this pull request Feb 23, 2024
Only remaining place it was being used was in a warning message.

DiffTrain build for [16d3f78](16d3f78)
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
Only remaining place it was being used was in a warning message.
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
Only remaining place it was being used was in a warning message.

DiffTrain build for commit 16d3f78.
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