Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit 1b077d1

Browse files
authored
Add sourcemaps (#173)
1 parent f230561 commit 1b077d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/setupTypeScript.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ while (( match = configEditor.exec(rollupConfig)) != null) {
8080

8181

8282
// Add TypeScript
83-
rollupConfig = rollupConfig.replace("commonjs(),", 'commonjs(),\n\t\ttypescript({ sourceMap: !production }),')
83+
rollupConfig = rollupConfig.replace(
84+
'commonjs(),',
85+
'commonjs(),\n\t\ttypescript({\n\t\t\tsourceMap: !production,\n\t\t\tinlineSources: !production\n\t\t}),'
86+
);
8487
fs.writeFileSync(rollupConfigPath, rollupConfig)
8588

8689
// Add TSConfig

0 commit comments

Comments
 (0)