mardi 14 février 2017

Understanding for ember-cli/loader.js require._stats properties

I've tried searching a variety of google searches and whether it's the bloated word require or unfriendliness to ./_ I cannot find information around this.

I'm digging into require._stats to try and understand the performance of my application based on modules defined, used, etc and the properties under require._stats look like useful tools into discovering this information.

I have a rough idea of what a few of the following mean but am curious on solid definitions for the following fields that pop up after typing require._stats in the dev console (linking to any external resources is appreciated as well):

  1. define
  2. exports
  3. findDeps
  4. findModule
  5. modules
  6. pendingQueueLength
  7. reify
  8. require
  9. resolve
  10. resolveRelative



Aucun commentaire:

Enregistrer un commentaire