UNPKG

1.08 kBTypeScriptView Raw
1export interface PlatformFSPluginOptions {
2 /**
3 * The target platform.
4 */
5 platform?: string;
6 /**
7 * A list of all platforms. By default it is `["ios", "android"]`.
8 */
9 platforms?: string[];
10 /**
11 * An array of minimatch expressions used to filter nodes from the file system.
12 */
13 ignore?: string[];
14}
15export declare class PlatformFSPlugin {
16 protected readonly platform: string;
17 protected readonly platforms: ReadonlyArray<string>;
18 protected readonly ignore: ReadonlyArray<string>;
19 protected context: string;
20 constructor({ platform, platforms, ignore }: PlatformFSPluginOptions);
21 apply(compiler: any): void;
22}
23export interface MapFileSystemArgs {
24 /**
25 * This is the underlying webpack compiler.inputFileSystem, its interface is similar to Node's fs.
26 */
27 readonly fs: any;
28 readonly context: string;
29 readonly platform: string;
30 readonly platforms: ReadonlyArray<string>;
31 readonly ignore: ReadonlyArray<string>;
32}
33export declare function mapFileSystem(args: MapFileSystemArgs): any;