Support swapping out packages rather than files. #1
Comments
Interesting idea, Could you fork and experiment how that could be done? |
Sure. On my list of tasks to do. |
@terinjokes good idea! |
Closing, but looking forward to PR that adds this. However we should investigate if some of this could be better solved with browserify plugins. |
This feature would be great. |
+1 |
Personally I'd be very interested in only this feature - ie, I want to swap out npm-installed packages, but i'd never want to swap out local files where I have full control of the code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now browserify-swap replaces files that match a regex, so to replace
underscore
you'll have something likeSince the package structure is not usually part of the public API, it would be nice to be able to replace based on package name, like with the browser field. This would become:
The text was updated successfully, but these errors were encountered: