Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix asset httpServerLocation on Windows.
Summary: Functions from the path module return paths with the native file system path separator. generateAssetModule is using path.join and path.dirname to generate httpServerLocation. That means that on Windows systems, the generated URL path has backslashes rather than forward slashes which breaks the app's ability to retrieve image assets using require('./image.png'). This change fixes this by checking path.sep and replacing backslashes with slashes on systems that require it. Closes #4416 Reviewed By: svcscm Differential Revision: D2740529 Pulled By: mkonicek fb-gh-sync-id: edae0f6762c7dc1db7af078209e38a2feab1e0a1
- Loading branch information
fe3686e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you my friend!