You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would suggest you refer to this comment: #70 (comment)
We have done extensive research and it actually is fully supportive with es6, however the way that webpack.DefinePlugin works.
We can either leak all process.env variables every time you reference a single variable, or we can remove the ability to destruct your env variables. For the purposes of security we opted to use the former.
I am closing this as it is a duplicate of #70. Let me know if there is anything else.
When I use es6 feature "destructing assignment", the variables do not work.
// It does not work
const { MY_VARIABLE } = process.env;
// It work
const MY_VARIABLE = process.env.MY_VARIABLE;
I think a little tuning in the engine that extracts the variables can fix it.
The text was updated successfully, but these errors were encountered: