coverage-istanbul-loader icon indicating copy to clipboard operation
coverage-istanbul-loader copied to clipboard

How to use with babel-loader?

Open jrnail23 opened this issue 5 years ago • 1 comments

I'm transpiling my react app with babel-loader. How do I set up coverage-istanbul-loader to play nicely with babel?

jrnail23 avatar Mar 13 '20 21:03 jrnail23

You can use babel-loader just like any other loader by putting it in the module.rules.use field of your webpack.config.

For example, see the TypeScript example project in this repo. Your webpack.config will be very similar, except that you'll use babel-loader instead of ts-loader

JamesMessinger avatar Mar 14 '20 10:03 JamesMessinger