cjs-minifake-pmb
v0.2.1
Published
Yet another "modules in browsers" sham.
Downloads
6
Readme
cjs-minifake-pmb
Yet another "modules in browsers" sham.
What it can't do
- Understand module metadata. (e.g.
package.json
) - Detect dependencies of modules.
- Fetch/read modules' files.
Then what's it good for?
- If the structure of your module is simple enough,
cjs-minifake-pmb
might 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-shim
must be loaded already, and there must be no fakeObject.definePropery
yet, 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
Known issues
- needs more/better tests and docs
License
ISC