marko
Version:
UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.
20 lines (16 loc) • 386 B
JavaScript
;
load.e = exists;
module.exports = load;
function load(id) {
return interopRequire(require(id));
}
function exists(id) {
// In lasso this helper is used to determine if a module was loaded but not run.
return !!(
require.runtime &&
require.runtime.resolve &&
require.runtime.resolve(id, "/"));
}
function interopRequire(mod) {
return mod.default || mod;
}