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

* **Type**: `boolean` | `"inline"` | `"hidden"`
* **Optional**

Whether to generate sourcemaps.

* `false`: No sourcemap will be generated.
* `true`: A separate sourcemap file will be generated.
* `'inline'`: The sourcemap will be appended to the output file as a data URL.
* `'hidden'`: A separate sourcemap file will be generated, but the link to the sourcemap (`//# sourceMappingURL` comment) will not be included in the output file.

## Default

```ts
false
```
