FactoryOptions: {
    compilerOptions?: Omit<typeScript.CompilerOptions, "inlineSourceMap" | "sourceMap">;
    exclude?: ReadonlyArray<string | RegExp> | string | RegExp;
    include?: ReadonlyArray<string | RegExp> | string | RegExp;
}

Type declaration

  • OptionalcompilerOptions?: Omit<typeScript.CompilerOptions, "inlineSourceMap" | "sourceMap">

    An instance of TypeScript CompilerOptions, minus the properties inlineSourceMap and sourceMap. Used by the factory to either override the compiler options resolved from the first available tsconfig.json file (starting from the current working directory) if any, or as the entire set of compiler options otherwise.

    Note that the inlineSourceMap and sourceMap properties will always be passed as false and true, respectively, to the underlying TypeScript compiler, in order to guarantee that the plugin is always capable of returning a source map to the Rollup engine.

  • Optionalexclude?: ReadonlyArray<string | RegExp> | string | RegExp

    A pattern, or an array of patterns, which specifies the files in the build the plugin should ignore. By default, no files are ignored.

  • Optionalinclude?: ReadonlyArray<string | RegExp> | string | RegExp

    A pattern, or an array of patterns, which specifies the files in the build the plugin should operate on. By default, .ts, .cts, .mts and .tsx files are targeted.