power-assert-js / espower-source

Power Assert instrumentor from code to code, with SourceMap.
MIT License
11 stars 7 forks source link

feat(espower-source): support file SourceMap #14

Closed shepherdwind closed 7 years ago

shepherdwind commented 7 years ago

If the SourceMap comment refer to a file path, then load sourceMap by fromMapFileComment other than fromComment.

When I use typescript with power-assert, I open the sourceMap config, and then the sourceMap comment refer to a foo.js.map file.

I spend a lot time to find why soucemap just not work, And finally I find that this lib do not support file sourceMap. So I send this pr to fix it.

twada commented 7 years ago

@shepherdwind Thank you for your great contribution! I'll release this feature ASAP.

twada commented 7 years ago

espower-source 2.1.0 is out. Thanks!