-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better TypeScript support for package.json exports field #37377
Conversation
This pull request was exported from Phabricator. Differential Revision: D45769740 |
Base commit: 61335a1 |
This pull request was exported from Phabricator. Differential Revision: D45769740 |
) Summary: Pull Request resolved: facebook#37377 For 0.72 I enabled `moduleResolution: "nodenext"` which allows some package exports support, but this is imperfect. E.g. RN will typecheck against the `node` condition and there are some more restrictions than we need. D45720238 bumped TypeScript to 5.0 for RN 0.73, along with D45721088 which brought the tsconfig inline. This lets us switch to the new [`moduleResolution: "bundler"`](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#moduleresolution-bundler) and instructs `tsc` to follow the `react-native` export condition. See even more context at: microsoft/TypeScript#51669 Changelog: [General][Added] - Better TypeScript support for package.json exports field Differential Revision: D45769740 fbshipit-source-id: 1e2ecbb0226c11b5ee556276cb742d361eddaeaf
4897991
to
b29efb8
Compare
) Summary: Pull Request resolved: facebook#37377 For 0.72 I enabled `moduleResolution: "nodenext"` which allows some package exports support, but this is imperfect. E.g. RN will typecheck against the `node` condition and there are some more restrictions than we need. D45720238 bumped TypeScript to 5.0 for RN 0.73, along with D45721088 which brought the tsconfig inline. This lets us switch to the new [`moduleResolution: "bundler"`](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#moduleresolution-bundler) and instructs `tsc` to follow the `react-native` export condition. See even more context at: microsoft/TypeScript#51669 Changelog: [General][Added] - Better TypeScript support for package.json exports field Differential Revision: D45769740 fbshipit-source-id: 0a016203e798bf655fb452a84f529e01abeaeb5c
b29efb8
to
0de3cd9
Compare
This pull request was exported from Phabricator. Differential Revision: D45769740 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D45769740 |
) Summary: Pull Request resolved: facebook#37377 For 0.72 I enabled `moduleResolution: "nodenext"` which allows some package exports support, but this is imperfect. E.g. RN will typecheck against the `node` condition and there are some more restrictions than we need. D45720238 bumped TypeScript to 5.0 for RN 0.73, along with D45721088 which brought the tsconfig inline. This lets us switch to the new [`moduleResolution: "bundler"`](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#moduleresolution-bundler) and instructs `tsc` to follow the `react-native` export condition. See even more context at: microsoft/TypeScript#51669 Changelog: [General][Added] - Better TypeScript support for package.json exports field Reviewed By: christophpurrer Differential Revision: D45769740 fbshipit-source-id: 7bfad1f28f1e61f0a4cf3433f912b6eb06db864f
0de3cd9
to
eee80c6
Compare
) Summary: Pull Request resolved: facebook#37377 For 0.72 I enabled `moduleResolution: "nodenext"` which allows some package exports support, but this is imperfect. E.g. RN will typecheck against the `node` condition and there are some more restrictions than we need. D45720238 bumped TypeScript to 5.0 for RN 0.73, along with D45721088 which brought the tsconfig inline. This lets us switch to the new [`moduleResolution: "bundler"`](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#moduleresolution-bundler) and instructs `tsc` to follow the `react-native` export condition. See even more context at: microsoft/TypeScript#51669 Changelog: [General][Added] - Better TypeScript support for package.json exports field Reviewed By: christophpurrer Differential Revision: D45769740 fbshipit-source-id: ff8a7fd5e0de7ed2c391bb080bda33425b27fbb3
eee80c6
to
86be8b6
Compare
This pull request was exported from Phabricator. Differential Revision: D45769740 |
This pull request has been merged in 1b0e8b1. |
Summary:
For 0.72 I enabled
moduleResolution: "nodenext"
which allows some package exports support, but this is imperfect. E.g. RN will typecheck against thenode
condition and there are some more restrictions than we need.D45720238 bumped TypeScript to 5.0 for RN 0.73, along with D45721088 which brought the tsconfig inline. This lets us switch to the new
moduleResolution: "bundler"
and instructstsc
to follow thereact-native
export condition.See even more context at: microsoft/TypeScript#51669
Changelog:
[General][Added] - Better TypeScript support for package.json exports field
Differential Revision: D45769740