Skip to content

Interface: SeaConfig ​

Defined in: src/features/exe.ts:35

See also Node.js SEA Documentation

Note some default values are different from Node.js defaults to optimize for typical use cases (e.g. disabling experimental warning, enabling code cache). These can be overridden.

Properties ​

assets? ​

ts
optional assets?: Record<string, string>;

Defined in: src/features/exe.ts:63


disableExperimentalSEAWarning? ​

ts
optional disableExperimentalSEAWarning?: boolean;

Defined in: src/features/exe.ts:49

Default ​

ts
true

execArgv? ​

ts
optional execArgv?: string[];

Defined in: src/features/exe.ts:58


execArgvExtension? ​

ts
optional execArgvExtension?: "env" | "none" | "cli";

Defined in: src/features/exe.ts:62

Default ​

ts
'env'

executable? ​

ts
optional executable?: string;

Defined in: src/features/exe.ts:40

Optional, if not specified, uses the current Node.js binary


main? ​

ts
optional main?: string;

Defined in: src/features/exe.ts:36


mainFormat? ​

ts
optional mainFormat?: "commonjs" | "module";

Defined in: src/features/exe.ts:45

Default ​

ts
tsdownConfig.format === 'es' ? 'module' : 'commonjs'

output? ​

ts
optional output?: string;

Defined in: src/features/exe.ts:41


useCodeCache? ​

ts
optional useCodeCache?: boolean;

Defined in: src/features/exe.ts:57

Default ​

ts
false

useSnapshot? ​

ts
optional useSnapshot?: boolean;

Defined in: src/features/exe.ts:53

Default ​

ts
false

Released under the MIT License.