How does extjs Ext.require() works

extjs

Solution

As part of the build process, we generate a "bootstrap" file which contains information about which files exist. So it doesn't query the filesystem, it just asks the bootstrap for everything under `Ext.grid`.

Problem

I understand that lets say if we have, ``` Ext.require([ 'Ext.ux.grid.FiltersFeature', 'Ext.toolbar.Paging' ]); ``` it will translate those entries into some_path/ux/grid/FilterFeature.js etc but how does ``` Ext.require([ 'Ext.grid.*', ]); ``` is going to work? it doent know how many js files are below grid/ directory so from client side how can it load them?, is it stuff like lazy loading, i mean if some other file has child js entry it will allow loading? Thanks

Original source