mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +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') {
|
||||
import('@welldone-software/why-did-you-render').then(({ default: whyDidYouRender }) => {
|
||||
if (whyDidYouRender) {
|
||||
whyDidYouRender(React, { trackAllPureComponents: false });
|
||||
}
|
||||
whyDidYouRender(React, {
|
||||
trackAllPureComponents: true,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user