зеркало из https://github.com/microsoft/rnx-kit.git
57013d2191
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
test | ||
CHANGELOG.md | ||
README.md | ||
eslint.config.js | ||
package.json | ||
tsconfig.json |
README.md
@rnx-kit/metro-plugin-typescript
@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. |