mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Narrow root wildcard entry point (#57276)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/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
This commit is contained in:
1 parent
2d491c0c75
commit
cd0d93ac2a
1 file changed
+7
-14
@@ -34,14 +34,14 @@
|
||||
"types": "./types/index.d.ts",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"./*": {
|
||||
"./Libraries/*": {
|
||||
"react-native-strict-api": null,
|
||||
"types": "./*.d.ts",
|
||||
"default": "./*.js"
|
||||
"types": "./Libraries/*.d.ts",
|
||||
"default": "./Libraries/*.js"
|
||||
},
|
||||
"./*.js": {
|
||||
"./Libraries/*.js": {
|
||||
"react-native-strict-api": null,
|
||||
"default": "./*.js"
|
||||
"default": "./Libraries/*.js"
|
||||
},
|
||||
"./Libraries/*.d.ts": {
|
||||
"react-native-strict-api": null,
|
||||
@@ -56,16 +56,9 @@
|
||||
"react-native-strict-api": null,
|
||||
"default": "./types/*.d.ts"
|
||||
},
|
||||
"./gradle/*": null,
|
||||
"./React/*": null,
|
||||
"./ReactAndroid/*": null,
|
||||
"./ReactApple/*": null,
|
||||
"./ReactCommon/*": null,
|
||||
"./sdks/*": null,
|
||||
"./jest-preset": "./jest-preset.js",
|
||||
"./rn-get-polyfills": "./rn-get-polyfills.js",
|
||||
"./src/fb_internal/*": "./src/fb_internal/*",
|
||||
"./third-party-podspecs/*": null,
|
||||
"./types/*": null,
|
||||
"./types_generated/*": null,
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"jest-junit": {
|
||||
|
||||
Reference in new issue
Block a user