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

Swap isparta for babel-plugin-istanbul #330

Open
jamesplease opened this issue May 10, 2016 · 14 comments
Open

Swap isparta for babel-plugin-istanbul #330

jamesplease opened this issue May 10, 2016 · 14 comments
Labels

Comments

@jamesplease
Copy link
Member

isparta isn't maintained, and it seems that the latest istanbuls might have better support for ES2015+.

@paulfalgout
Copy link
Member

FWIW I successfully made the switch to gulp-babel-istanbul on one project after having an isparta issue.

@paulfalgout
Copy link
Member

here's a specific example. Pretty easy switch. RoundingWellOS/marionette.toolkit@55993bd

@jamesplease
Copy link
Member Author

Nice!

@jamesplease
Copy link
Member Author

jamesplease commented May 11, 2016

Note that this swaps isparta for https://github.com/jmcriffey/babel-istanbul, another library that is a "temporary fix." Eventually we will want to use just vanilla istanbul.

It might be worth using istanbul alpha for reasons like jeffrifwald/babel-istanbul#56 (comment)

@jamesplease
Copy link
Member Author

My approach here will be to test babel-istanbul against istanbul beta on some project of mine. If istanbul beta is up to snuff, I'll use that. Otherwise, I'll switch to babel-istanbul.

@jamesplease
Copy link
Member Author

Ah jeez, yet another option: https://github.com/dtinth/babel-plugin-__coverage__

Coverage + transpiled code is in a rough place right now. That last one looks like it might be promising, but I'll have to investigate further...

@jamesplease
Copy link
Member Author

@jamesplease
Copy link
Member Author

jamesplease commented Jul 29, 2016

Looks like the babel-plugin-__coverage__ tool is working well for people. And now that it's been out for some time, so I think that'll be what I transition to.

@hzoo
Copy link
Member

hzoo commented Jul 29, 2016

There's also https://github.com/istanbuljs/babel-plugin-istanbul now (based off of ^)

@jamesplease
Copy link
Member Author

jamesplease commented Jul 29, 2016

Ha I was literally just posting that @hzoo! Thanks for the link ;)


In this comment it's mentioned that babel-plugin-istanbul might be significantly slower than __coverage__. I'll have to check to see if they've improved the performance at all, or if the slow performance seems like a problem.

@hzoo
Copy link
Member

hzoo commented Jul 30, 2016

Ah I might have some answers for that - https://github.com/babel/babel/releases/tag/v6.11.3 Ref istanbuljs/babel-plugin-istanbul#5 - logan made some generator improvements but yeah I would check to confirm

@jamesplease
Copy link
Member Author

Alright – after some investigating I'm confident that switching to babel-plugin-istanbul is a good move forward.

@jamesplease jamesplease added task and removed question labels Aug 25, 2016
@jamesplease jamesplease changed the title Consider move off isparta to latest istanbul Swap isparta for babel-plugin-istanbul Aug 25, 2016
@bcoe
Copy link

bcoe commented Aug 31, 2016

@jmeas @hzoo let me know if you run into any issues, happy to land patches 👍

@hzoo also, reminds me, I owe you adding babel-plugin-istanbul to babel's own tests!

@hzoo
Copy link
Member

hzoo commented Aug 31, 2016

@bcoe We have it for babylon at least now https://github.com/babel/babylon/blob/master/.babelrc#L6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants