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
feature #960 fix: don't override process variable in DefinePlugin configuration (drazik)
This PR was squashed before being merged into the main branch.
Discussion
----------
fix: don't override process variable in DefinePlugin configuration
Following the warning on https://webpack.js.org/plugins/define-plugin/:
> When defining values for process prefer
> `'process.env.NODE_ENV': JSON.stringify('production')` over
> `process: { env: { NODE_ENV: JSON.stringify('production') } }`.
> Using the latter will overwrite the process object which can break
> compatibility with some modules that expect other values on the
> process object to be defined.
This fixed a conflict warning I had when using [`dotenv-webpack` plugin](https://github.com/mrsteele/dotenv-webpack):
```
DefinePlugin
Conflicting values for 'process.env'
```
Commits
-------
fbe9393 fix: don't override process variable in DefinePlugin configuration
0 commit comments