istanbuljs / babel-plugin-istanbul

A babel plugin that adds istanbul instrumentation to ES6 code
BSD 3-Clause "New" or "Revised" License
624 stars 73 forks source link

fix: Print explicit error if use with babel 6 is attempted #207

Closed coreyfarrell closed 5 years ago

coreyfarrell commented 5 years ago

Also simplify the src -> lib transpile to only process ESM -> CJS, nothing else from @babel/preset-env is needed by node.js 6.

coreyfarrell commented 5 years ago

@bcoe it started to actually fail when istanbul-lib-instrument gained support for class properties. See #206 for an example of the error currently produced. This PR will cause the error to directly say that Babel 7 is required rather than 'You gave us a visitor for the node type "ClassPrivateProperty" but it's not a valid type'.