Skip to content

Commit

Permalink
Add note about TypeScript regarding ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Nov 25, 2024
1 parent 3fb07cd commit 84334ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion versioned_docs/version-7.x/upgrading-from-6.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,8 @@ All the packages in React Navigation now use ESM exports. While it shouldn't aff

- If you are importing internal files from the packages, they might now be restricted by your bundler and it won't be possible to import them directly. You should use the public API instead.
- If you're patching the packages using `patch-package`, `yarn patch` etc., you'll need to patch the built files under `lib/` folders instead of the source files under `src/` as the source files are no longer exported.
- If you're using Webpack, it maybe necessary to set [`resolve.fullySpecified`](https://webpack.js.org/configuration/module/#resolvefullyspecified) to `false` for bundling to work.
- If you're using TypeScript with the `module` or `moduleResolution` option, it maybe necessary to set `moduleResolution` to `Bundler` to match [Metro's resolution behavior](https://reactnative.dev/blog/2023/06/21/package-exports-support#enabling-package-exports-beta).
- If you're using Webpack for bundling code using React Navigation, it maybe necessary to set [`resolve.fullySpecified`](https://webpack.js.org/configuration/module/#resolvefullyspecified) to `false` for bundling to work.

## New features

Expand Down

0 comments on commit 84334ca

Please sign in to comment.