Sourcemaps with normal Usage, not Alternative usage
See original GitHub issueWe’re having troubles trying to make source maps work with typescript spec source files and main source files.
If we stick with the Alternative usage described here, then generate source maps as suggested in following section here, we can happily browse typescript code from Chrome developer tools while debugging tests.
If we stick with the basic usage described here, and we load spec files through karma.conf.js, instead of require-ing them in test shim single entry point, it looks like sourcemaps stop working. Browser developer tools only show JS webpack-prepared bundles, not original typescript source files.
Is this second way feasible at all? Can anybody explain how to get there? Thanks for your time!
Issue Analytics
- State:
- Created 8 years ago
- Reactions:4
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Sourcemaps with normal Usage, not Alternative usage #109
We're having troubles trying to make source maps work with typescript spec source files and main source files.
Read more >Source Maps not working with Webpack - Stack Overflow
In bundle.js you will see original transpiled webpack bundle - this is normal behaviour. Open webpack:// and you will see your project files ......
Read more >Configuring Sentry with JavaScript Source Maps
An epic troubleshooting tale to enable JavaScript source map fetching in Sentry.
Read more >Using sourcemaps on production without exposing the source ...
There is a good solution for this issue — sourcemaps. It allows you to debug minified code as if it was unmodified. It's...
Read more >How to Use Source Maps in TypeScript Lambda Functions ...
Stack Traces; Emitting Source Maps; Source Map Support; CDK Example ... AWS does not publish the minor versions in use in Lambda, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Here’s native solution to make source map work in typescript unit tests: include
SourceMapDevToolPluginplugin to webpack config and configure it to process.tsfiles as well:I can verify this with a simple test:
Outputs
This works nice. But let us change
test/unit.jstotest/unit.ts:Outputs
The mapping is lost.