File tree 2 files changed +2
-2
lines changed
packages/react-scripts/config
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ module.exports = {
213
213
} ) ,
214
214
// Makes some environment variables available to the JS code, for example:
215
215
// if (process.env.NODE_ENV === 'development') { ... }. See `./env.js`.
216
- new webpack . DefinePlugin ( env [ 'process.env' ] ) ,
216
+ new webpack . DefinePlugin ( env ) ,
217
217
// This is necessary to emit hot updates (currently CSS only):
218
218
new webpack . HotModuleReplacementPlugin ( ) ,
219
219
// Watcher doesn't work well if you mistype casing in a path so we use
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ module.exports = {
240
240
// if (process.env.NODE_ENV === 'production') { ... }. See `./env.js`.
241
241
// It is absolutely essential that NODE_ENV was set to production here.
242
242
// Otherwise React will be compiled in the very slow development mode.
243
- new webpack . DefinePlugin ( env [ 'process.env' ] ) ,
243
+ new webpack . DefinePlugin ( env ) ,
244
244
// This helps ensure the builds are consistent if source hasn't changed:
245
245
new webpack . optimize . OccurrenceOrderPlugin ( ) ,
246
246
// Try to dedupe duplicated modules, if any:
You can’t perform that action at this time.
0 commit comments