Skip to content

Commit cd0d93a

Browse files
huntiemeta-codesync[bot]
authored andcommitted
Narrow root wildcard entry point (#57276)
Summary: Pull Request resolved: #57276 Simplify `"exports"` mapping on the `react-native` package by replacing the `"./*"` wildcard export with explicit listed subpaths (invert from blocklist to allowlist). These changes are **non-breaking** — the net accessible exports subpaths before/after are equivalent. Changelog: [Internal] Reviewed By: rubennorte Differential Revision: D109018823 fbshipit-source-id: eeb8b2ac147487fbe224d4a1da438d51099cbcde
1 parent 2d491c0 commit cd0d93a

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

packages/react-native/package.json

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
"types": "./types/index.d.ts",
3535
"default": "./index.js"
3636
},
37-
"./*": {
37+
"./Libraries/*": {
3838
"react-native-strict-api": null,
39-
"types": "./*.d.ts",
40-
"default": "./*.js"
39+
"types": "./Libraries/*.d.ts",
40+
"default": "./Libraries/*.js"
4141
},
42-
"./*.js": {
42+
"./Libraries/*.js": {
4343
"react-native-strict-api": null,
44-
"default": "./*.js"
44+
"default": "./Libraries/*.js"
4545
},
4646
"./Libraries/*.d.ts": {
4747
"react-native-strict-api": null,
@@ -56,16 +56,9 @@
5656
"react-native-strict-api": null,
5757
"default": "./types/*.d.ts"
5858
},
59-
"./gradle/*": null,
60-
"./React/*": null,
61-
"./ReactAndroid/*": null,
62-
"./ReactApple/*": null,
63-
"./ReactCommon/*": null,
64-
"./sdks/*": null,
59+
"./jest-preset": "./jest-preset.js",
60+
"./rn-get-polyfills": "./rn-get-polyfills.js",
6561
"./src/fb_internal/*": "./src/fb_internal/*",
66-
"./third-party-podspecs/*": null,
67-
"./types/*": null,
68-
"./types_generated/*": null,
6962
"./package.json": "./package.json"
7063
},
7164
"jest-junit": {

0 commit comments

Comments
 (0)