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: bda5740b3628a7bdaa6596f4adbdd252fc490604
  • Loading branch information
robhogan authored and facebook-github-bot committed Aug 30, 2023
1 parent 0c58d4a commit 775cc58
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/Configuration.md
Expand Up @@ -395,6 +395,26 @@ 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 symlink support.
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.
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, you'll need to list those package source locations (or a containing directory) in [`watchFolders`](#watchfolders).
Defaults to `false`.
:::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 775cc58

Please sign in to comment.