Yet another "modules in browsers" sham.
- Understand module metadata. (e.g.
package.json) - Detect dependencies of modules.
- Fetch/read modules' files.
- If the structure of your module is simple enough,
cjs-minifake-pmbmight be able to load it even in circumstances where a fully-featured loader could run into problems, including:- Package metadata missing or inaccessible.
- HTML served from local file system instead of from a server.
- MSIE6, possible even MSIE4 (AMD mode only)
- At the time you load
m.js, the shims (es5-shim.min.js) from packagees5-shimmust be loaded already, and there must be no fakeObject.defineProperyyet, so don't load the shams (with letter a) from that package. If you need them, too, load them afterm.js. An example can be found in test/inspect.html.
- At the time you load
- needs more/better tests and docs
ISC