diff --git a/src/wdyr.ts b/src/wdyr.ts index 7ca95cc37b0..c04bc61cc1f 100644 --- a/src/wdyr.ts +++ b/src/wdyr.ts @@ -1,10 +1,9 @@ -// import React from 'react' +import React from 'react' -// @TODO: fix this -// if (import.meta.env.NODE_ENV === 'development') { -// const whyDidYouRender = require('@welldone-software/why-did-you-render') -// whyDidYouRender(React, { -// trackAllPureComponents: true, -// exclude: [/withBoundingRects\(\)/, /Portal/], -// }) -// } +if (import.meta.env.NODE_ENV === 'development') { + const whyDidYouRender = require('@welldone-software/why-did-you-render') + whyDidYouRender(React, { + trackAllPureComponents: true, + exclude: [/withBoundingRects\(\)/, /Portal/], + }) +}