rnx-kit/packages/metro-plugin-typescript
renovate[bot] 57013d2191
fix(deps): update eslint (major) (#3394)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
2024-10-17 14:41:52 +00:00
..
src fix(metro-plugin-typescript): fix beta versions of TypeScript failing version check (#3392) 2024-10-17 09:10:35 +02:00
test fix(metro-plugin-typescript): fix beta versions of TypeScript failing version check (#3392) 2024-10-17 09:10:35 +02:00
CHANGELOG.md RELEASING: Releasing 1 package(s) (#3393) 2024-10-17 09:20:38 +02:00
README.md docs: automate removal of badges from READMEs (#2324) 2023-04-14 08:24:28 +02:00
eslint.config.js chore: migrate to ESLint flat config (#2782) 2023-11-03 14:02:18 +01:00
package.json fix(deps): update eslint (major) (#3394) 2024-10-17 14:41:52 +00:00
tsconfig.json feat(tsconfig): base TypeScript configs for working with Node (#2886) 2023-12-18 12:05:07 +01:00

README.md

@rnx-kit/metro-plugin-typescript

Build npm version

@rnx-kit/metro-plugin-typescript adds type checking to Metro.

Usage

 const { makeMetroConfig } = require("@rnx-kit/metro-config");
+const { TypeScriptPlugin } = require("@rnx-kit/metro-plugin-typescript");

 module.exports = makeMetroConfig({
   serializer: {
+    experimentalSerializerHook: TypeScriptPlugin(),
   },
 });

Options

Key Type Default Description
throwOnError boolean false Whether to throw when errors are found.