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

Allow global transforms #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

runningskull
Copy link

This patch adds a corresponding globalTransforms option that behaves just like the transforms option, except {global: true} is passed as the first argument to bundle.transform()

I'm not married to the implementation, but it seemed like the least intrusive both in exposed interface and required code.

It needs tests, which I'll write once we're sure it's a desired feature.

(I want this functionality for uglifyify, but it's a browserify option that's generally useful)

@defunctzombie
Copy link
Owner

Is this still a desired feature? Will this work with browserify v5 if we upgrade?

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.

2 participants