#Browser performance during dev
1 messages · Page 1 of 1 (latest)
In general, transform phase will lower performance, so check some packages you imported whether include large numbers of sub-modules. For example, the first way will cost less time:
// first
import last from 'lodash/last'
// second
import { last } from 'lodash'
yeah i've done that for the most part but theres still a lot of modules being loaded, ~2.2k according to the network tab
It's better way to provide a reproduce by https://stackblitz.com/?starters=vite
it's a bit difficult to copy over a massive mono-repo over to stack blitz 😅 was mostly just wondering if there were any good readings on some best practices for large code bases that use vite