Skip to content

Commit

Permalink
fix(rn): add unstable_enablePackageExports to the metro config
Browse files Browse the repository at this point in the history
  • Loading branch information
gdorsi committed Jan 12, 2025
1 parent 21efae9 commit f78c234
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-ducks-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-jazz-app": patch
---

Fix metro config for the RN starter
2 changes: 2 additions & 0 deletions packages/create-jazz-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ const { withNativeWind } = require("nativewind/metro");
const config = getDefaultConfig(__dirname);
config.resolver.unstable_enablePackageExports = true;
module.exports = withNativeWind(config, { input: "./src/global.css" });
`;
fs.writeFileSync(metroConfigPath, metroConfig);
Expand Down

0 comments on commit f78c234

Please sign in to comment.