> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Type Alias: OutputConfig

> **OutputConfig** = `Required`\<`LibConfig`>\[`"output"`] & `object`

Output config accepted by Lynx external bundle builds.

## Type Declaration

### externals?

> `optional` **externals?**: [`Externals`](/next/api/packages/lynx-bundle-rslib-config/type-aliases/Externals.md)

### externalsPresetDefinitions?

> `optional` **externalsPresetDefinitions?**: [`ExternalsPresetDefinitions`](/next/api/packages/lynx-bundle-rslib-config/type-aliases/ExternalsPresetDefinitions.md)

Definitions for custom externals presets enabled by `externalsPresets`.

Use this to add business-specific presets such as `@lynx-js/lynx-ui`, or to extend a
built-in preset through `extends`.

### externalsPresets?

> `optional` **externalsPresets?**: [`ExternalsPresets`](/next/api/packages/lynx-bundle-rslib-config/type-aliases/ExternalsPresets.md)

Presets for external libraries.

Same as [https://rspack.rs/config/externals#externalspresets](https://rspack.rs/config/externals#externalspresets) but for Lynx.

### globalObject?

> `optional` **globalObject?**: `"lynx"` | `"globalThis"`

This option indicates what global object will be used to mount the library.

In Lynx, the library will be mounted to `lynx[Symbol.for("__LYNX_EXTERNAL_GLOBAL__")]` by default.

If you have enabled share js context and want to reuse the library by mounting to the global object, you can set this option to `'globalThis'`.

#### Default Value

`'lynx'`
