Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants