Skip to content

Commit fa0da3a

Browse files
robhoganmeta-codesync[bot]
authored andcommitted
docs: Update docs for TS support, dropped YAML support
Summary: YAML support was dropped entirely in https://github.com/react/metro/releases/tag/v0.86.0 but I missed removing the deprecation notice in the docs. Also tweak the TS support wording now that the minimum Node.js version is 22.13.0 (so all versions we support do support TS, but 22.13-22.17 require a flag), and clarify that this is type stripping, not compilation - so erasable TS only. Changelog: Internal Differential Revision: D114592227 fbshipit-source-id: 285317eea23dc3707b653e1359b422866db9e45f
1 parent 387e082 commit fa0da3a

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎docs/Configuration.md‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,9 @@ A Metro config can be created in the following file formats (ordered by priority
1313

1414
You can also give a custom file to the configuration by specifying `--config <path/to/config>` when calling the CLI.
1515

16-
:::warning Deprecated
17-
18-
YAML config files (`.yaml`, `.yml`) are **deprecated** and will be removed in a future version of Metro. Please migrate to a JavaScript, TypeScript, or JSON config file. When Metro loads a YAML config file, it will display a deprecation warning.
19-
20-
:::
21-
2216
:::info TypeScript Config Support
2317

24-
TypeScript config files are supported in Node.js 24.0.0+ or Node.js 22.6.0+ with the `--experimental-strip-types` flag. If your Node.js version doesn't support loading TypeScript natively, you'll see an error with instructions when attempting to load a TypeScript config file.
18+
Metro uses Node.js native TypeScript support to load `.*ts` config files. For Node.js 22.18.0 and later or 24.0.0 later, _erasable_ TypeScript is supported out of the box. For Node.js < 22.18.0, use the `--experimental-strip-types` flag. See https://nodejs.org/learn/typescript/run-natively.
2519

2620
:::
2721

0 commit comments

Comments
 (0)