mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
16 lines
433 B
JavaScript
16 lines
433 B
JavaScript
var nativeRequire = require;
|
|
var resolveFrom = require('resolve-from');
|
|
|
|
// This allows us to swap out a different implementation in the browser...
|
|
// We only need this to make Try Online work :/
|
|
exports.require = function(path) {
|
|
return nativeRequire(path);
|
|
};
|
|
|
|
exports.resolve = function(path) {
|
|
return nativeRequire.resolve(path);
|
|
};
|
|
|
|
exports.resolveFrom = function(from, target) {
|
|
return resolveFrom(from, target);
|
|
}; |