mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
feat: migrate from CRA to Vite for speed
This commit is contained in:
7
packages/webapp/src/wdyr.ts
Normal file
7
packages/webapp/src/wdyr.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
import('@welldone-software/why-did-you-render').then(({ default: whyDidYouRender }) => {
|
||||
if (whyDidYouRender) {
|
||||
whyDidYouRender(React, { trackAllPureComponents: false });
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user