Fixed the error with impementation of devDependancy
This commit is contained in:
parent
f6a2f646a9
commit
4a329ce1a0
@ -11,9 +11,12 @@ import React from 'react';
|
||||
|
||||
*/
|
||||
|
||||
const devDependancyWDYR = '@welldone-software/why-did-you-render';
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
const whyDidYouRender = require('@welldone-software/why-did-you-render');
|
||||
const whyDidYouRender = require(devDependancyWDYR);
|
||||
whyDidYouRender(React, {
|
||||
trackAllPureComponents: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user