@clawject/di
Version:
<p align="center"> <a href="https://clawject.com/" target="_blank"><img src="https://clawject.com/img/logo.svg" align="center" alt="Clawject Logo" width="120" height="120" /></a> </p>
49 lines (43 loc) • 1.41 kB
TypeScript
import { UnpluginFactory } from 'unplugin';
import { UnpluginInstance } from 'unplugin';
/**
* A valid `picomatch` glob pattern, or array of patterns.
*/
declare type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;
declare type Options = {
/**
* The patterns of files to include.
*
* `Default`: `[/\.[cm]?tsx?$/]`
*/
include?: FilterPattern;
/**
* The patterns of files to exclude.
*
* `Default`: `[/node_modules/]`
*/
exclude?: FilterPattern;
/**
* The path to the tsconfig file.
* If not specified, the plugin will try to find it automatically.
*
* `Default`: `tsconfig.json`
*/
tsconfig?: string;
/**
* Whether to skip the compilation.
*
* If you're already using TypeScript compiler to compile your code, you can set this to `true`
* to skip the additional compilation by this plugin
* and utilize clawject transformer as a typescript compiler plugin https://clawject.com/docs/setup#bundler-with-typescript-loader
*
* `Default`: `false`
*/
skipCompilation?: boolean;
};
/** @public */
declare const unplugin: UnpluginInstance<Options | undefined, boolean>;
export default unplugin;
export { unplugin }
export declare const unpluginFactory: UnpluginFactory<Options | undefined>;
export { }