Skip to content

Commit 84334ca

Browse files
committed
Add note about TypeScript regarding ESM
1 parent 3fb07cd commit 84334ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

versioned_docs/version-7.x/upgrading-from-6.x.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,8 @@ All the packages in React Navigation now use ESM exports. While it shouldn't aff
559559

560560
- 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.
561561
- 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.
562-
- 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.
562+
- 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).
563+
- 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.
563564

564565
## New features
565566

0 commit comments

Comments
 (0)