- install react devtools
- then in vite.config.ts
const profiling = isProduction && {
"react-dom/client": "react-dom/profiling",
};
config
resolve: {
alias: {
...profiling,
}
},
build: {
minify: false,
},
- build and serve app
- use React DevTools Profiling tab