Skip to content

fix(rn-tester): resolve macOS bundle for shared iOS example list - #43

Open
sethwebster wants to merge 1 commit into
Saadnajmi:0.87/releasefrom
sethwebster:seth/rntester-macos-requires
Open

sethwebster wants to merge 1 commit into
Saadnajmi:0.87/releasefrom
sethwebster:seth/rntester-macos-requires

Conversation

@sethwebster

Copy link
Copy Markdown

RNTesterList.macos.js re-exports RNTesterList.ios.js. That list requires ../examples/TextInput/TextInputExample and ../examples/TestLibrary/TestLibraryExample without an extension, and only .ios.js / .android.js variants exist. A platform=macos bundle of RNTester therefore fails:

Unable to resolve module ../examples/TextInput/TextInputExample from packages/rn-tester/js/utils/RNTesterList.ios.js

This requires the .ios files explicitly, tagged [macOS].

Verified on the 0.87 stack tip (1a9971c257):

node ../react-native/cli.js bundle --platform macos --dev true --entry-file js/RNTesterApp.macos.js
  • without the change: exit 1, UnableToResolveError
  • with the change: exit 0, 6.0 MB bundle

ESLint and Prettier pass on the file.

RNTesterList.macos.js re-exports RNTesterList.ios.js, which requires
TextInputExample and TestLibraryExample without an extension. Only
.ios/.android variants exist, so the platform=macos bundle fails with
UnableToResolveError. Require the .ios files explicitly.

This branch has not been deployed

No deployments
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.

1 participant