File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/rsg-components/ReactComponent Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ require('../scripts/utils/ensureWebpack');
38
38
39
39
// Set environment before loading style guide config because user’s webpack config may use it
40
40
const env = command === 'build' ? 'production' : 'development' ;
41
- process . env . NODE_ENV = env ;
41
+ process . env . NODE_ENV = process . env . NODE_ENV || env ;
42
42
43
43
// Load style guide config
44
44
let config ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import Slot from 'rsg-components/Slot';
8
8
import { DOCS_TAB_USAGE } from '../slots' ;
9
9
import ReactComponentRenderer from 'rsg-components/ReactComponent/ReactComponentRenderer' ;
10
10
11
- const ExamplePlaceholder = process . env . NODE_ENV === 'development '
11
+ const ExamplePlaceholder = process . env . NODE_ENV !== 'production '
12
12
? require ( 'rsg-components/ExamplePlaceholder' ) . default
13
13
: ( ) => < div /> ;
14
14
You can’t perform that action at this time.
0 commit comments