Skip to content

Commit 6e94bd8

Browse files
Jimmy Millergaearon
Jimmy Miller
authored andcommitted
Removed NODE_PATH from env.js
env.js is only for variables injected into the app.
1 parent afe25df commit 6e94bd8

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

config/env.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
var REACT_APP = /^REACT_APP_/i;
1616
var NODE_ENV = JSON.stringify(process.env.NODE_ENV || 'development');
17-
var NODE_PATH = process.env.NODE_PATH || '';
1817

1918
module.exports = Object
2019
.keys(process.env)
@@ -23,6 +22,5 @@ module.exports = Object
2322
env['process.env.' + key] = JSON.stringify(process.env[key]);
2423
return env;
2524
}, {
26-
'process.env.NODE_ENV': NODE_ENV,
27-
'process.env.NODE_PATH': NODE_PATH
25+
'process.env.NODE_ENV': NODE_ENV
2826
});

config/webpack.config.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = {
6969
resolve: {
7070
// This allows you to set a root for where webpack should look for modules.
7171
// This enables you to use absolute imports from the root.
72-
root: path.resolve(env['process.env.NODE_PATH']),
72+
root: path.resolve(process.env.NODE_PATH || ''),
7373
// These are the reasonable defaults supported by the Node ecosystem.
7474
extensions: ['.js', '.json', ''],
7575
alias: {

config/webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module.exports = {
6464
resolve: {
6565
// This allows you to set a root for where webpack should look for modules.
6666
// This enables you to use absolute imports from the root.
67-
root: path.resolve(env['process.env.NODE_PATH']),
67+
root: path.resolve(process.env.NODE_PATH || ''),
6868
// These are the reasonable defaults supported by the Node ecosystem.
6969
extensions: ['.js', '.json', ''],
7070
alias: {

0 commit comments

Comments
 (0)