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

Help migrating to babel-plugin-istanbul

Open dvmorris opened this issue 7 years ago • 1 comments

I inherited a project that uses this library, and I need some help migrating to babel-plugin-istanbul. The karma.conf.js file has this definition in it right now:

webpack: {
      devtool: 'inline-source-map',
      module: {
        loaders: [
          {
            test: /\.jsx?$/,
            exclude: /__tests__|node_modules|App|Routes/,
            loader: 'babel-istanbul',
            query: {
              cacheDirectory: true
            }
          },

Any pointers on how to migrate to the other plugin?

dvmorris avatar Sep 06 '16 16:09 dvmorris

hi.

  1. remove this loader from karma.conf.js
  2. https://github.com/istanbuljs/babel-plugin-istanbul#usage

or just wait a few days for this PR to be merged https://github.com/deepsweet/istanbul-instrumenter-loader/pull/28, it will work in absolutely the same way as babel-istanbul-loader.

deepsweet avatar Sep 06 '16 21:09 deepsweet