Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 223970795
  • Loading branch information
TypeScript Team authored and alexeagle committed Dec 4, 2018
1 parent f9d6edb commit 676567c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/common/tsconfig.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def create_tsconfig(
if p
])
workspace_path = "/".join([".."] * len(tsconfig_dir.split("/")))

# Sourcemaps should be relative to workspace_root. Reuse the tsconfig_dir, but take out the bin_dir.
sourcemap_root = "/".join([".."] * (len(tsconfig_dir.split("/")) - len(ctx.bin_dir.path.split("/"))))

if module_path_prefixes == None:
module_path_prefixes = [
"",
Expand Down Expand Up @@ -251,6 +255,7 @@ def create_tsconfig(
# Embed source maps and sources in .js outputs
"inlineSourceMap": True,
"inlineSources": True,
"sourceRoot": sourcemap_root,
# Implied by inlineSourceMap: True
"sourceMap": False,
}
Expand Down

0 comments on commit 676567c

Please sign in to comment.