---
url: /reference/OutputOptions.sourcemapExcludeSources.md
---
# sourcemapExcludeSources

* **Type**: `boolean`
* **Optional**

Whether to exclude the original source code from sourcemaps.

When `true`, the `sourcesContent` field is omitted from the generated sourcemap,
reducing the sourcemap file size. The sourcemap will still contain source file paths
and mappings, so debugging works if the original files are available.

## Default

```ts
false
```
