You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exception during instrumentation and I traced it down to this:
Visitor.js' exit() method calls babel/@type's valueToNode(coverageData) method. The coverageData.inputSourceMap property used to be a plain object, but (I think because of a newer version of babel?), inputSourceMap is now an instance of the SourceMap class, causing valueToNode() to throw that exception.
That seems like an ideal place to convert to a plain javascript object. It sounds like the babel team would like to not make a copy of the sourcemap every time they are generated.
I'm getting the
exception during instrumentation and I traced it down to this:
Visitor.js'
exit()
method callsbabel/@type
'svalueToNode(coverageData)
method. ThecoverageData.inputSourceMap
property used to be a plain object, but (I think because of a newer version of babel?),inputSourceMap
is now an instance of theSourceMap
class, causingvalueToNode()
to throw that exception.I know this is similar to #646 but we aren't using Angular. I am using https://github.com/JS-DevTools/coverage-istanbul-loader, perhaps I should be using https://github.com/istanbuljs/babel-plugin-istanbul instead. I am wondering though how or if this is working for other configurations, and if
istanbul-lib-instrument
needs an update to handlecoverageData.inputSourceMap
being aSourceMap
?The text was updated successfully, but these errors were encountered: