know your import load - inspired from wix/import-cost
apm install importcost
when the npm module isn't installed locally
Just install the package and it kicks in for '.js' and '.ts' files. The size will be calculated and displayed on the same line. importcost is triggered when active panel is switched / saved.
If the module hasn't been installed / not present in package.json
, it assumes the latest version of the module.
node_modules
to find the module cost.Do check them amount ^_^
PRs welcome as long it doesn't break existing functionality and all hell breaks loose!
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.