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

Bug fix. Only resolve env vars on bundling when --target=browser. #1323

Merged
merged 1 commit into from
May 9, 2018
Merged

Bug fix. Only resolve env vars on bundling when --target=browser. #1323

merged 1 commit into from
May 9, 2018

Conversation

emanuel-lundman
Copy link
Contributor

This fix checks if target is browser before replacing process.env with the value of the environment variable.

When targeting node parcel should not replace process.env with value of variable in code at bundle time. Node needs to do this at runtime.

I've assumed that electron is the same way but haven't built any electron apps myself yet so.. not sure. If my assumption was incorrect the pull request needs a little tweak.

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