Skip to content

Commit 24106c7

Browse files
author
Ives van Hoorne
committed
Add sourcemapping for typescript projects
1 parent cc2e5bd commit 24106c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/app/src/sandbox/eval/transpilers/typescript/typescript-worker.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,17 @@ self.addEventListener('message', event => {
4949
},
5050
};
5151

52-
let finalConfig = defaultConfig;
52+
let finalConfig = { ...defaultConfig };
5353

5454
if (config) {
5555
finalConfig = { ...config };
5656
finalConfig.compilerOptions = {
5757
...config.compilerOptions,
5858
module: ts.ModuleKind.CommonJS,
5959
moduleResolution: ts.ModuleResolutionKind.NodeJs,
60+
inlineSourceMap: true,
61+
inlineSources: true,
62+
emitDecoratorMetadata: true,
6063
};
6164
}
6265

0 commit comments

Comments
 (0)