diff --git a/scripts/setupTypeScript.js b/scripts/setupTypeScript.js index f22663e..123fc57 100644 --- a/scripts/setupTypeScript.js +++ b/scripts/setupTypeScript.js @@ -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