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

# output.sourceMap

> `optional` **sourceMap?**: `boolean` | [`SourceMap`](/next/api/packages/rspeedy/interfaces/SourceMap.md)

:::info Lynx default override
This is an Rsbuild option whose default is overridden by `pluginLynx`. The default shown below applies when using the plugin. Set this option at the top level of `rsbuild.config.ts`; an explicit value takes precedence.

[See the Rsbuild reference for the full option behavior](https://rsbuild.rs/config/output/source-map).
:::

The [SourceMap](/next/api/packages/rspeedy/interfaces/SourceMap.md) configures whether and how to generate source-map for outputs.

## Default Value

When this option is unset in Lynx builds, JavaScript source maps use `'cheap-module-source-map'` in development and `'source-map'` in production; CSS source maps are also generated. All `.map` assets are removed before emit.
