Skip to content

Handle line endings correctly on Windows in build script for RN #26727

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

Merged

Conversation

rubennorte
Copy link
Contributor

Summary

We added some post-processing in the build for RN in #26616 that broke for users on Windows due to how line endings were handled to the regular expression to insert some directives in the docblock. This fixes that problem, reported in #26697 as well.

How did you test this change?

Verified files are still built correctly on Mac/Linux. Will ask for help to test on Windows.

@rubennorte
Copy link
Contributor Author

rubennorte commented Apr 25, 2023

I don't have access to a Windows machine at the moment. @markerikson, @yanlingwang23 would either of you mind checking if this fixes the issue you were seeing please?

@react-sizebot
Copy link

Comparing: bf449ee...b86039b

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 = 163.94 kB 163.94 kB = 51.68 kB 51.68 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 169.47 kB 169.47 kB = 53.33 kB 53.33 kB
facebook-www/ReactDOM-prod.classic.js = 572.79 kB 572.79 kB = 101.48 kB 101.48 kB
facebook-www/ReactDOM-prod.modern.js = 556.53 kB 556.53 kB = 98.67 kB 98.67 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against b86039b

@markerikson
Copy link
Contributor

Yep, that appears to pass on my machine! Confirmed it fails as of main, and passes with this pasted in

@rubennorte rubennorte merged commit f87e97a into facebook:main Apr 25, 2023
@rubennorte
Copy link
Contributor Author

Thanks again @markerikson for reporting the issue and verifying the fix, and sorry for the inconveniences!

@rubennorte rubennorte deleted the fix-build-script-for-rn-shims-in-windows branch April 25, 2023 16:27
@markerikson
Copy link
Contributor

Sure, thanks for the quick fix!

github-actions bot pushed a commit that referenced this pull request Apr 25, 2023
## Summary

We added some post-processing in the build for RN in #26616 that broke
for users on Windows due to how line endings were handled to the regular
expression to insert some directives in the docblock. This fixes that
problem, reported in #26697 as well.

## How did you test this change?

Verified files are still built correctly on Mac/Linux. Will ask for help
to test on Windows.

DiffTrain build for [f87e97a](f87e97a)
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
…book#26727)

## Summary

We added some post-processing in the build for RN in facebook#26616 that broke
for users on Windows due to how line endings were handled to the regular
expression to insert some directives in the docblock. This fixes that
problem, reported in facebook#26697 as well.

## How did you test this change?

Verified files are still built correctly on Mac/Linux. Will ask for help
to test on Windows.
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
## Summary

We added some post-processing in the build for RN in #26616 that broke
for users on Windows due to how line endings were handled to the regular
expression to insert some directives in the docblock. This fixes that
problem, reported in #26697 as well.

## How did you test this change?

Verified files are still built correctly on Mac/Linux. Will ask for help
to test on Windows.

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

5 participants