-
Notifications
You must be signed in to change notification settings - Fork 651
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 process guard #777
base: master
Are you sure you want to change the base?
add process guard #777
Conversation
@guybedford // When NODE_ENV is "development"
typeof process !== 'undefined' && process.env.NODE_ENV !== 'production'
// This becomes like the following in runtime
typeof process !== 'undefined' && "development" !== 'production'
// process is undefined in runtime, so this condition is always `false` But, I understand your concern, so we should find a way to work with JSPM. |
@koba04 Build tools that handle the replacement should know to intelligently replace the Perhaps we can follow up with build tool issues further as this is important to fix. |
Personally, I'd like to remove I noticed that |
Checking Agreed fully removing would be nice, was just posting the easiest fix to start. I will aim to follow up build issues if that's a concern. |
@guybedford I've noticed that there are other If we keep using |
I'd like to take an option to remove |
This fixes react-transition-group to work with
"module"
resolution on JSPM. See the example at https://jspm.org/sandbox#H4sIAAAAAAAAA61W32/aMBB+719xy172o0lKta6MQUXHqqobdFVp1e3RJAfxFtuRz0DptP99FwcYoJZW2x4gsn333Xd38XdpPktN4mYFQuZUfrTTXDxQpEc7AE2FTkCSCUvoWsHYDcN64A+cdDkeXWv/TJtxtV66aKGwFUwkTgtjXQCJ0Q41Q0xl6rJWihOZYOgXuyC1dFLkISUix1aNAzTjikFzYNKZR30WhvwA+NS/6MEparTCGQtnqsSHnij86UkqHVxfdhucjyuoEcejhWn0nQoVSRM/v94/z76dfvjxsbdnZ/27T/3rWvb5pDi/6hxedvv557vO5Eu3p3t3787Pu3Uz6X49nu5dXVz2pmfHQ9W5cX065mhh6IlRYmXhoCxiK5CejhKFL9JPz2m+SUFjvsFbFkXiQmeFJk7d6HBkzbhgi2DJWywJ60I17ndov4neRPsxkoqlTvGWXQIf4tduFZoSU+Ba5HvwV47ZoD0QA8xjO+bWKuQ+5AVa8jEEEVp3lUk6qzom7zDdQnodqn0Y1d5GB48jllnsPokQ3vJLldI/UZhjP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