Skip to content

Commit 5fcc438

Browse files
authored
Add a reference to sourcesContent
Some online discussions about source maps reference `sourcesContent` (e.g., [here](https://scotch.io/tutorials/your-source-maps-are-broken-heres-how-to-fix-them) and [here](https://docs.sentry.io/platforms/javascript/sourcemaps/troubleshooting_js/#verify-artifacts-are-uploaded)). Referencing that keyword here may help TypeScript users.
1 parent 617bc04 commit 5fcc438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tsconfig-reference/copy/en/options/inlineSources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ display: "Inline Sources"
33
oneline: "Include source code in the sourcemaps inside the emitted JavaScript."
44
---
55

6-
When set, TypeScript will include the original content of the `.ts` file as an embedded string in the source map.
6+
When set, TypeScript will include the original content of the `.ts` file as an embedded string in the source map (using the source map's `sourcesContent` property).
77
This is often useful in the same cases as [`inlineSourceMap`](#inlineSourceMap).
88

99
Requires either [`sourceMap`](#sourceMap) or [`inlineSourceMap`](#inlineSourceMap) to be set.

0 commit comments

Comments
 (0)