Search code examples
javascriptnode.jstypescriptperformancesource-maps

Performance hit when using --inlineSourceMap with NodeJS in production?


Is there a significant performance hit when using the TypeScript compiler option --inlineSourceMap in a NodeJS production environment?


Solution

  • I wouldn't recommend doing that in production. There is already a discussion about that here in stackoverflow regarding sourceMaps. Though enabling that in your node.js application would double the js file size which would be that good in my opinion 🤞