From 0e96125260f2d78718e57cac95c7dc672bb24e57 Mon Sep 17 00:00:00 2001
From: Kitson Kelly <me@kitsonkelly.com>
Date: Wed, 8 Aug 2018 10:44:46 -0700
Subject: [PATCH] Use sourcemapFile to reroot sourcemap sources

---
 BUILD.gn | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/BUILD.gn b/BUILD.gn
index 064a59e16d..c52c2503e0 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -308,6 +308,8 @@ run_node("bundle") {
     rebase_path("js/main.ts", root_build_dir),
     "-o",
     rebase_path(out_dir + "main.js", root_build_dir),
+    "--sourcemapFile",
+    rebase_path("."),
     "--silent",
     "--environment",
     "BASEPATH:" + rebase_path(".", root_build_dir),