Fixed the error with impementation of devDependancy

This commit is contained in:
Bohdan Zhemelinskyi 2021-10-05 13:38:44 +00:00
parent f6a2f646a9
commit 4a329ce1a0

View File

@ -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,
});
}