diff --git a/src/lib/wdyr.ts b/src/lib/wdyr.ts index 711c91a6d..791946c93 100644 --- a/src/lib/wdyr.ts +++ b/src/lib/wdyr.ts @@ -1,7 +1,10 @@ import React from 'react'; if (process.env.NODE_ENV === 'development') { - const whyDidYouRender = require('@welldone-software/why-did-you-render'); + const { default: whyDidYouRender } = await import( + '@welldone-software/why-did-you-render' + ); + whyDidYouRender(React, { trackAllPureComponents: true, trackHooks: true,