Skip to content

Interface: Options

Defined in: options.ts:7

Properties

debug?

ts
optional debug: boolean;

Defined in: options.ts:21

Debug mode. Wether or not to keep temporary files to help with debugging. Temporary files are stored in node_modules/.cache/unrun/ if possible, otherwise in the OS temporary directory.

Default

ts
false;

inputOptions?

ts
optional inputOptions: InputOptions;

Defined in: options.ts:33

Additional rolldown input options. These options will be merged with the defaults provided by unrun, with these options always taking precedence.


outputOptions?

ts
optional outputOptions: OutputOptions;

Defined in: options.ts:39

Additional rolldown output options. These options will be merged with the defaults provided by unrun, with these options always taking precedence.


path?

ts
optional path: string | URL;

Defined in: options.ts:12

The path to the file to be imported. Supports filesystem paths, file URLs or URL objects.

Default

ts
"index.ts";

preset?

ts
optional preset: "none" | "jiti" | "bundle-require";

Defined in: options.ts:27

The preset to use for bundling and output format.

Default

ts
"none";