Skip to content

FIx process.env usage in variables#328

Merged
roderickhsiao merged 2 commits intoyahoo:masterfrom
chrissantamaria:fix-process-env-usage
Apr 29, 2021
Merged

FIx process.env usage in variables#328
roderickhsiao merged 2 commits intoyahoo:masterfrom
chrissantamaria:fix-process-env-usage

Conversation

@chrissantamaria
Copy link
Contributor

👋 small fix - in Webpack, DefinePlugin replaces full variable expressions (i.e. process.env.NODE_ENV) but can't detect implied destructured values (i.e. const { NODE_ENV } = process.env). This PR just changes some process.env usages to use full expressions.

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@roderickhsiao roderickhsiao merged commit 280f08d into yahoo:master Apr 29, 2021
@chrissantamaria chrissantamaria deleted the fix-process-env-usage branch April 29, 2021 01:09
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.

2 participants