Skip to content

Commit

Permalink
fix: bring back wdyr
Browse files Browse the repository at this point in the history
  • Loading branch information
NeOMakinG committed Feb 28, 2025
1 parent 1ffbea2 commit bc94cf4
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/wdyr.ts
Original file line number Diff line number Diff line change
@@ -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/],
})
}

0 comments on commit bc94cf4

Please sign in to comment.