Closed sshev closed 7 years ago
In some build configurations source maps are inlined into code and later used from the coverage object via embedSource prop to remap coverage to original code. However update to version 1.1.0 brings latest version of istanbul-lib-instrument which no longer provides embedSource (proof). So source maps get lost and we got "Could not find source map" errors (like here https://github.com/deepsweet/istanbul-instrumenter-loader/issues/35 and https://github.com/AngularClass/angular2-webpack-starter/issues/1117)
embedSource
1.1.0
istanbul-lib-instrument
This PR handles inline source maps case.
@deepsweet pls check
good, but I'd like to use this tested module instead of custom regexp. the less things we have to maintain the better. could you please refactor it?
👍
thanks for the hint, just updated PR
In some build configurations source maps are inlined into code and later used from the coverage object via
embedSource
prop to remap coverage to original code. However update to version1.1.0
brings latest version ofistanbul-lib-instrument
which no longer providesembedSource
(proof). So source maps get lost and we got "Could not find source map" errors (like here https://github.com/deepsweet/istanbul-instrumenter-loader/issues/35 and https://github.com/AngularClass/angular2-webpack-starter/issues/1117)This PR handles inline source maps case.