@lingui/cli
Version:
Lingui CLI to extract messages, compile catalogs, and manage translation workflows
30 lines (29 loc) • 1.27 kB
TypeScript
import type { BuildOptions } from "esbuild";
import type { ExperimentalExtractorBundler } from "@lingui/conf";
export type EsbuildBundlerOptions = {
/**
* List of package name patterns to include for extraction.
*
* For example, to include all packages from your monorepo:
*
* ["@mycompany"]
*
* By default, all imports that look like package imports are ignored.
* This means imports that do not start with `/`, `./`, `../`, or `#`
* (used for subpath imports). TypeScript path aliases are also ignored
* because they look like package imports.
*
* Add here the packages you want to include.
*/
includeDeps?: string[];
/**
* svg, jpg and other files which might be imported in application should be excluded from analysis.
* By default, extractor provides a comprehensive list of extensions. If you feel like something
* is missing in this list please fill an issue on GitHub
*
* NOTE: changing this param will override default list of extensions.
*/
excludeExtensions?: string[];
resolveEsbuildOptions?: (options: BuildOptions) => BuildOptions;
};
export declare function createEsbuildBundler(options?: EsbuildBundlerOptions): ExperimentalExtractorBundler;