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

Register plugins *before* transforms? #363

Open
jvilk opened this issue Oct 23, 2015 · 4 comments
Open

Register plugins *before* transforms? #363

jvilk opened this issue Oct 23, 2015 · 4 comments

Comments

@jvilk
Copy link

jvilk commented Oct 23, 2015

I'm using tsify to compile TypeScript input to browserify. tsify exists as a plugin, since it uses the TypeScript compiler for dependency resolution. Because it does this, tsify must be registered with Browserify before any transforms. Unfortunately for me, Browserify runs all transforms before plugins!

My solution right now is to add a configure callback to manually invoke the API, but I wanted to open this issue to see if it would be a good idea to change grunt-browserify's behavior to register plugins before transforms. I'm relatively new to the Browserify ecosystem, so I don't know if the converse is ever true -- e.g. that a transform must be registered before all plugins. If it's not, then this behavior change would be benign. 😄

@jvilk jvilk changed the title Run plugins *before* transforms? Register plugins *before* transforms? Oct 23, 2015
@ElijahGlover
Copy link

I'd like this too

@crobinson42
Copy link

+1

@quaos
Copy link

quaos commented Sep 15, 2019

I got this issue too with ES6 modules and esmify. When using browserify -p esmify directly there is no problem.

@itsHusky
Copy link

itsHusky commented Oct 2, 2021

I got this issue too with ES6 modules and esmify. When using browserify -p esmify directly there is no problem.

I am experiencing the same problem. I cannot get browserify work together with tsify and esmify as plugins.

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

No branches or pull requests

5 participants