-
Notifications
You must be signed in to change notification settings - Fork 6
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
Use pirates
for require hooks.
#5
Conversation
@gotwarlost: Ok, Breaking API changes have been dealt with! Pirates@2.0.0 has been published, and this PR has been updated! I hope you enjoy! |
@gotwarlost: Would it be possible to get this merged? If not, is there anything I could do to fix it? Thanks! |
@gotwarlost: bump. |
Pirates is a module which takes care of hooking require for you, allowing you to just pass in a transformer.
(This might not be the right place for this, but...) Hey, @davglass, you work with @gotwarlost in real life, right? Do you have any idea where he might be? He appears to have disappeared. Thanks! |
Just on vacation for the past few weeks. Back now :) Will look at istanbul related stuff next week since I have a few other things to finish before then |
@gotwarlost: Ok, Great! Thanks! |
@gotwarlost: bump. |
Sorry man, @jamestalmage 's writeup https://www.npmjs.com/package/append-transform convinced me that I need it too. The lack of 'append' is causing many bug reports even on the istanbul 1.x branch. Closing this PR as a result. Sorry! |
Hey, no worries! Append-transform respects the chain, which is all I care about. Thanks! Ari — |
Hi!
As discussed in various issues (mainly istanbuljs/nyc#70), this PR uses
pirates
to implement require hooks. Pirates takes care of hooking require, so we don't have to. This makes the various require-related functions in this module mostly wrappers, but useful none the less.This change is completely transparent (a patch version bump), and all the tests still pass.