Package Exports
- require-precompiled
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (require-precompiled) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
require-precompiled

Require extension that allows for caching/precompiling
Install
$ npm install --save require-precompiledUsage
const installPrecompiler = require('require-precompiled');
const cache = require('my-cache-implementation');
installPrecompiler(filename => {
if (cache.hasEntryFor(filename)) {
return cache.getPrecompiledCode(filename);
}
// fall through to underlying extension chain;
return null;
});
// Any module required from this point on will be checked against the cache.
const foo = require('some-module');API
requirePrecompiled(callback)
callback
Type: Function(string: filename)
Return string contents for a cache hit, or null for a miss.
License
MIT © James Talmage