mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix: wdyr error with vite
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import whyDidYouRender from '@welldone-software/why-did-you-render';
|
||||||
|
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
import('@welldone-software/why-did-you-render').then(({ default: whyDidYouRender }) => {
|
whyDidYouRender(React, {
|
||||||
if (whyDidYouRender) {
|
trackAllPureComponents: true,
|
||||||
whyDidYouRender(React, { trackAllPureComponents: false });
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user