olov / ng-annotate

Add, remove and rebuild AngularJS dependency injection annotations
MIT License
2.03k stars 152 forks source link

Source maps with compiled output #234

Closed NickTsitlakidis closed 8 years ago

NickTsitlakidis commented 8 years ago

Hello,

I'm using the typescript compiler with source map generation to be able to debug in the browser. This works nice until I pass the output through ng-annotate.

The issue then is that ng-annotate changes the output (as it should) so the initial source map doesn't behave correctly.

Any thoughts on how to solve this?

I tried generating a source map through ng-annotate as well, but this doesn't work. I guess its too complicated for the browser to go through multiple maps.

NickTsitlakidis commented 8 years ago

Never mind.

Solved the problem by combining the two source maps using https://github.com/azu/multi-stage-sourcemap