I'm not an expert with javascript.
I'm wondering, from which library you get the require method
For example, in main.js : (https://github.com/marmelab/ng-admin-demo/blob/master/js/main.js)
require('./customers/config')(nga, admin);
Thank you !
I'm not an expert with javascript.
I'm wondering, from which library you get the require method
For example, in main.js : (https://github.com/marmelab/ng-admin-demo/blob/master/js/main.js)
require('./customers/config')(nga, admin);
Thank you !
 
    
    There are multiple ways to support modules in the browser: AMD, CommonJS, UMD and RequireJS(browser only). In your particular example, I think webpack will pack all the modules together(see dev dependecies in that project and webpack config in the project). See:
In the NodeJS require is a global function: See: How does require() in node.js work?