Skip to content

Commit

Permalink
Add sourcemaps (sveltejs#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Sep 13, 2020
1 parent f230561 commit 1b077d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/setupTypeScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ while (( match = configEditor.exec(rollupConfig)) != null) {


// Add TypeScript
rollupConfig = rollupConfig.replace("commonjs(),", 'commonjs(),\n\t\ttypescript({ sourceMap: !production }),')
rollupConfig = rollupConfig.replace(
'commonjs(),',
'commonjs(),\n\t\ttypescript({\n\t\t\tsourceMap: !production,\n\t\t\tinlineSources: !production\n\t\t}),'
);
fs.writeFileSync(rollupConfigPath, rollupConfig)

// Add TSConfig
Expand Down

0 comments on commit 1b077d1

Please sign in to comment.