types-plugin-duplicates-checker
TypeScript type definitions for rnx-kit metro bundling plugins.
Installation
yarn add @rnx-kit/types-plugin-duplicates-checker --dev
or if you're using npm
npm add --save-dev @rnx-kit/types-plugin-duplicates-checker
Usage
import type { DuplicateDetectorPluginOptions } from "@rnx-kit/types-plugin-duplicates-checker";
Types
Bundler Plugin Types for duplicate detector plugin
DuplicateDetectorPluginOptions
Options for @rnx-kit/metro-plugin-duplicates-checker.
| Name | Type | Description |
|---|---|---|
| ignoredModules | readonly string[] | undefined | List of modules to ignore when scanning for duplicates. |
| bannedModules | readonly string[] | undefined | List of modules that always cause a failure. |
| throwOnError | boolean | undefined | Whether to throw an exception when a duplicate is detected. |