refactor(globals): dont use process.env
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React, { useMemo, CSSProperties, HTMLAttributes, MouseEvent, WheelEvent } from 'react';
|
||||
import cc from 'classcat';
|
||||
|
||||
const nodeEnv: string = process.env.NODE_ENV as string;
|
||||
const nodeEnv: string = __ENV__ as string;
|
||||
|
||||
if (nodeEnv !== 'production') {
|
||||
const whyDidYouRender = require('@welldone-software/why-did-you-render');
|
||||
|
||||
+1
-1
@@ -511,7 +511,7 @@ export const storeModel: StoreModel = {
|
||||
}),
|
||||
};
|
||||
|
||||
const nodeEnv: string = process.env.NODE_ENV as string;
|
||||
const nodeEnv: string = __ENV__ as string;
|
||||
const store = createStore(storeModel, { devTools: nodeEnv === 'development' });
|
||||
|
||||
export default store;
|
||||
|
||||
Reference in New Issue
Block a user