Skip to content

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