Skip to content

Commit

Permalink
Document resolver.unstable_enableSymlinks
Browse files Browse the repository at this point in the history
Differential Revision: D48784988

fbshipit-source-id: 6f5c51fc77339d4f29a606a8a93cc4dd9ea91c89
  • Loading branch information
robhogan authored and facebook-github-bot committed Aug 30, 2023
1 parent 0c58d4a commit 2aa9676
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/Configuration.md
Expand Up @@ -395,6 +395,30 @@ In a future release of Metro, this option will become `true` by default.
---
#### `unstable_enableSymlinks` <div class="label experimental">Experimental</div>
Type: `boolean`
Enable experimental support for projects containing symbolic links (symlinks).
When enabled, Metro traverses symlinks during module and asset [resolution](./Resolution.md), instead of ignoring symlinks. Note that, as with any other file Metro needs to resolve, the symlink target *must be within configured [watched folders](#watchfolders)* and not otherwise excluded.
Defaults to `false`.
:::info
For example, if you have a Metro project within a [Yarn workspace](https://classic.yarnpkg.com/lang/en/docs/workspaces/) (a subdirectory of a Yarn workspace root), it's likely you'll want to include your workspace *root* path in your configured [`watchFolders`](#watchfolders) so that Metro can resolve other workspaces or hoisted `node_modules`. Similarly, to use [linked packages](https://classic.yarnpkg.com/lang/en/docs/cli/link/), you'll need to list those package source locations (or a containing directory) in [`watchFolders`](#watchfolders).
:::
:::note
In a future release of Metro, this option will become `true` by default.
:::
---
### Transformer Options
<!-- Keep old links to `asyncRequireModulePath` working -->
Expand Down

0 comments on commit 2aa9676

Please sign in to comment.