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

Overwrite require() in a project but exclude node_modules #15

Open
raine opened this issue Oct 28, 2015 · 0 comments
Open

Overwrite require() in a project but exclude node_modules #15

raine opened this issue Oct 28, 2015 · 0 comments

Comments

@raine
Copy link

raine commented Oct 28, 2015

I'm thinking about ways one might incorporate ramda-t in development process without too much hassle.

One of those I've considered is conditionally overwriting require in non-production environment so that if you require('ramda') instead of vanilla Ramda you'd get ramda-t.

In order for this to be a feasible approach, the require overwrite should only apply to the project's own files.

I know based on the README that really-need can be used to overwrite require in the way I described, but I also understood that it would apply to global scope and affecting all dependencies as well.

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

No branches or pull requests

2 participants