4 ms·
If library writers were to use CommonJS Modules (i.e. just use require() and exports), we'd be most of the way there. Require.js and AMD still feel like they a
by mckoss 16y ago
If library writers were to use CommonJS Modules (i.e. just use require() and exports), we'd be most of the way there.
Require.js and AMD still feel like they are not appropriate in all scenarios (e.g., I really don't want or need a "loader" in simple single page applications).
This is my suggestion for a very light weight way of using CommonJS Modules in the browser which is agnostic about how your scripts are loaded.
http://github.com/mckoss/namespace http://github.com/mckoss/namespace