gotwarlost / istanbul-middleware

Connect middleware for server side code coverage using istanbul
Other
179 stars 96 forks source link

Compatibility with babel transpiler #21

Open epoberezkin opened 9 years ago

epoberezkin commented 9 years ago

If I insert hookLoader after require('babel/register') it doesn't work (logs errors), although babel produces valid JavaScript code. If I insert hookLoader before require('babel/register') it seemingly works (no errors), although in some cases (but not in all - only 2 apps out of 7 in my case) no coverage is collected - the web page shows: No coverage information has been collected. I will try to investigate what exactly is causing the issue.