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

[Win32] Reduce usage of long paths in assets which can cause long path issues #11839

Merged
merged 15 commits into from
Aug 10, 2023

Conversation

acoates-ms
Copy link
Contributor

@acoates-ms acoates-ms commented Jul 5, 2023

Description

Code that would go with react-native-community/cli#2002 to implement a saveAssetPlugin for rn-win32. This allows rn-win32 to customize the layout of the asset files on disc, in particular shortening longer paths to avoid hitting max path length on systems that do not have long path support enabled.

Why

Issues when installing / loading images with long paths - which is especially common when loading images from npm packages and using pnpm as the package manager.

What

What changes were made to the codebase to solve the bug, add the functionality, etc. that you specified above.

Screenshots

Add any relevant screen captures here from before or after your changes.

Testing

If you added tests that prove your changes are effective or that your feature works, add a few sentences here detailing the added test scenarios.

Optional: Describe the tests that you ran locally to verify your changes.

Microsoft Reviewers: codeflow:open?pullrequest=#11839

@acoates-ms acoates-ms force-pushed the saveAssetPluginWin32 branch from 1cefb73 to 4cf790e Compare July 6, 2023 18:43
@acoates-ms acoates-ms marked this pull request as ready for review August 9, 2023 17:38
@acoates-ms acoates-ms requested review from a team as code owners August 9, 2023 17:38
@acoates-ms acoates-ms merged commit ecd0ad7 into main Aug 10, 2023
@acoates-ms acoates-ms deleted the saveAssetPluginWin32 branch August 10, 2023 22:56
acoates-ms added a commit to acoates-ms/react-native-windows that referenced this pull request Aug 10, 2023
…h issues (microsoft#11839)

* Add saveAssetPlugin to fix long path assets

* Change files

* comment

* add back compat

* fix

* turn off win32 assetPlugin for now

* fix

* fix

* fix

* Change files

* fix
acoates-ms added a commit that referenced this pull request Aug 11, 2023
* [Win32] Reduce usage of long paths in assets which can cause long path issues (#11839)

* Add saveAssetPlugin to fix long path assets

* Change files

* comment

* add back compat

* fix

* turn off win32 assetPlugin for now

* fix

* fix

* fix

* Change files

* fix

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

Successfully merging this pull request may close these issues.

2 participants