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

# Interface: EncodeOptions

The options for encoding the external bundle.

## Properties

### enableJsBytecode?

> `optional` **enableJsBytecode?**: `boolean`

Whether to compile main thread chunks to JsBytecode in the emitted bundle.

#### Remarks

When disabled, main thread chunks are encoded as plain JavaScript source,
which keeps them readable for debugging and speeds up encoding.

Only takes effect for the `'lynx'` target. For the `'web'` target the
`JsBytecode` tag only routes main thread chunks to the correct bundle
slot (the chunk is never bytecode-compiled), so it is always kept.

#### Default Value

`false` when `NODE_ENV` is `'development'`, otherwise `true`

***

### engineVersion?

> `optional` **engineVersion?**: `string`

The engine version of the external bundle.

#### Default Value

```ts
'3.5'
```

***

### target?

> `optional` **target?**: `"web"` | `"lynx"`

The output format of the encoded bundle.

- `'lynx'`: the native bundle a Lynx engine loads, via `@lynx-js/tasm`.
- `'web'`: a web binary bundle via `@lynx-js/web-core/encode`, decodable by
  the web platform. Sections are emitted as raw JS (the web runtime wraps
  them at `lynx.loadScript` time), and CSS is folded into the StyleInfo
  section.

#### Default Value

```ts
'lynx'
```
