@nx/esbuild
Version:
43 lines (39 loc) • 1.24 kB
TypeScript
import { AssetGlob } from '@nx/js/src/utils/assets/assets';
import * as esbuild from 'esbuild';
type Compiler = 'babel' | 'swc';
export interface EsBuildExecutorOptions {
additionalEntryPoints?: string[];
assets?: (AssetGlob | string)[];
bundle?: boolean;
declaration?: boolean;
declarationRootDir?: string;
deleteOutputPath?: boolean;
esbuildOptions?: Record<string, any>;
esbuildConfig?: string;
external?: string[];
excludeFromExternal?: string[];
format?: Array<'esm' | 'cjs'>;
generatePackageJson?: boolean;
main: string;
metafile?: boolean;
minify?: boolean;
outputFileName?: string;
outputHashing?: 'none' | 'all';
outputPath: string;
platform?: 'node' | 'browser' | 'neutral';
sourcemap?: boolean | 'linked' | 'inline' | 'external' | 'both';
skipTypeCheck?: boolean;
target?: string;
thirdParty?: boolean;
tsConfig: string;
watch?: boolean;
}
export interface NormalizedEsBuildExecutorOptions
extends Omit<EsBuildExecutorOptions, 'esbuildOptions' | 'esbuildConfig'> {
assets: (AssetGlob | string)[];
singleEntry: boolean;
external: string[];
excludeFromExternal: string[];
userDefinedBuildOptions: esbuild.BuildOptions | undefined;
isTsSolutionSetup?: boolean;
}