forked from HorusGoul/remix-react-native-web-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alternative approach to module alias using tsconfig paths.
Instead of using pnpm, alias the module using tsconfig paths. ``` "paths": { "~react-native": ["./node_modules/react-native-web"], "~/*": ["./app/*"], }, ``` Remix currently only accepts paths with prefixes with ~ or ., as mentioned in this [this issues](remix-run/remix#1405), but this has the added benefit of allowing us to import react-native as well, or dependencies that have react-native as a peer dependency.
- Loading branch information
Showing
8 changed files
with
3,384 additions
and
3,322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.