Add sourcemaps (#173)

This commit is contained in:
Simon H 2020-09-13 14:57:04 +02:00 committed by GitHub
parent f23056166e
commit 1b077d10d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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