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

Add loose-envify browserify transform #45

Merged
merged 2 commits into from May 9, 2017

Conversation

mridgway
Copy link
Contributor

@mridgway mridgway commented May 9, 2017

Fixes facebook/react#9641

This tells browserify to remove process.env.NODE_ENV conditionals during bundling.

},
"browserify": {
"transform": [
"loose-envify"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be our dep now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good question. Seems like yes. I see it in React's dependencies as well.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add it!

@gaearon gaearon merged commit 268a6cb into facebook:master May 9, 2017
@gaearon
Copy link
Contributor

gaearon commented May 9, 2017

Can you please verify 15.5.9 fixes it?

@mridgway
Copy link
Contributor Author

mridgway commented May 9, 2017

I am seeing if ("development" !== 'production') { in our builds again with 15.5.9. 👍

@mridgway mridgway deleted the addBrowserifyTransform branch May 9, 2017 23:46
@gaearon
Copy link
Contributor

gaearon commented May 9, 2017

Awesome. Sorry for the trouble. Appreciate you sending a fix.

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.

None yet

2 participants