Add sourcemaps (#173)
This commit is contained in:
parent
f23056166e
commit
1b077d10d8
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue