UNPKG

typia-rspack-plugin

Version:
59 lines (55 loc) 1.74 kB
import { FilterPattern } from '@rollup/pluginutils'; import { ITransformOptions } from 'typia/lib/transformers/ITransformOptions.js'; /** * Represents the options for the plugin. */ declare type Options = { /** * The patterns of files to include. * This options is not merged but overridden. * @default [/\.[cm]?[jt]sx?$/] */ include?: FilterPattern; /** * The patterns of files to exclude. * This options is not merged but overridden. * @default [/node_modules/] */ exclude?: FilterPattern; /** * Adjusts the plugin order (only works for Vite and Webpack). * @default 'pre' */ enforce?: "pre" | "post" | undefined; /** * The path to the tsconfig file. * If not specified, the plugin will try to find it automatically. * @default undefined */ tsconfig?: string; /** * The options for the typia transformer. */ typia?: ITransformOptions; /** * The optiosn for cache. * The cache-dir-searching feature is powered by [find-cache-dir](https://github.com/sindresorhus/find-cache-dir). If you want to change cache dir, set an environment variable `CACHE_DIR`. * if `true`, it will enable cache with and will use node_modules/.cache/unplugin_typia. * if `false`, it will disable cache. * @default false */ cache?: true | false; /** * Enable debug mode. * @default true */ log?: boolean | "verbose"; }; declare class TypiaRspackPlugin { #private; constructor(options?: Options); apply(compiler: any): void; } export { TypiaRspackPlugin } export default TypiaRspackPlugin; export { }