Optimization: Cache inspectpack information.
Author: ryan-roemerCreated May 24, 2018Updated Dec 29, 2020
LabelsFeature Request
The only really "expensive" thing that inspectpack does now is traverse a very limited set of node_modules directories to infer the dependency tree. We could cache this if large projects hit problems.
- Decide if we need to do this. Get a reliable reproduction product to demonstrate the issue and confirm that
inspectpackis responsible (e.g., the file i/o). - Design a caching solution either in
webpack-dashboardand/orinspectpack - Handle disk changes in the
node_modulestree. Could be as simple as documenting "always close and restart the dashboard when updating dependencies".
Source: FormidableLabs/webpack-dashboard