mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
chore(core): monorepo, esm targeting, improved management (#8707)
This commit is contained in:
33
packages/webpack/plugins/PlatformFSPlugin.d.ts
vendored
Normal file
33
packages/webpack/plugins/PlatformFSPlugin.d.ts
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
export interface PlatformFSPluginOptions {
|
||||
/**
|
||||
* The target platform.
|
||||
*/
|
||||
platform?: string;
|
||||
/**
|
||||
* A list of all platforms. By default it is `["ios", "android", "desktop"]`.
|
||||
*/
|
||||
platforms?: string[];
|
||||
/**
|
||||
* An array of minimatch expressions used to filter nodes from the file system.
|
||||
*/
|
||||
ignore?: string[];
|
||||
}
|
||||
export declare class PlatformFSPlugin {
|
||||
protected readonly platform: string;
|
||||
protected readonly platforms: ReadonlyArray<string>;
|
||||
protected readonly ignore: ReadonlyArray<string>;
|
||||
protected context: string;
|
||||
constructor({ platform, platforms, ignore }: PlatformFSPluginOptions);
|
||||
apply(compiler: any): void;
|
||||
}
|
||||
export interface MapFileSystemArgs {
|
||||
/**
|
||||
* This is the underlying webpack compiler.inputFileSystem, its interface is similar to Node's fs.
|
||||
*/
|
||||
readonly context: string;
|
||||
readonly platform: string;
|
||||
readonly platforms: ReadonlyArray<string>;
|
||||
readonly ignore: ReadonlyArray<string>;
|
||||
readonly compiler: any;
|
||||
}
|
||||
export declare function mapFileSystem(args: MapFileSystemArgs): any;
|
Reference in New Issue
Block a user