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

browserify production/development/staging/testing/etc... flags to change the set of applied transforms #1715

Open
serapath opened this issue Apr 11, 2017 · 1 comment

Comments

@serapath
Copy link
Contributor

serapath commented Apr 11, 2017

This pull request enabled the usage from the cli.
#1709

I just figured out, that when I use:

  • browserify --transform-key=production index.js > bundle.js

Then browserify will also use that production key for all the dependencies.
Most dependencies, if they have a "browserify" field in package.json only specify "transform" property and not a "production" property, so browserify often fails when the custom --transform-key feature is used.

How to deal with this?

  • Would it be "smart" to automatically fall back to the "transform" key if for example in the above example a "production" key is specified?
@serapath
Copy link
Contributor Author

made a pull request for this.
#1721

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

No branches or pull requests

1 participant