Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from May 16, 2019

Conversation

coreyfarrell
Copy link
Member

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

Copy link
Member

@bcoe bcoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this LGTM; this would have just silently failed before? if so I'm comfortable with this not being a breaking change.

@coreyfarrell
Copy link
Member Author

coreyfarrell commented May 15, 2019

@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'.

@coreyfarrell coreyfarrell merged commit a12cf16 into istanbuljs:master May 16, 2019
@coreyfarrell coreyfarrell deleted the assert-babel-7 branch May 16, 2019 12:21
coreyfarrell added a commit that referenced this pull request May 16, 2019
PR #207 broke tests from #172
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants