mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
Remove direct require of test utils from within the compiler (#458)
This commit is contained in:
parent
deca5e7c5a
commit
0634df862e
@ -1,6 +1,4 @@
|
||||
var resolveFrom = require('resolve-from');
|
||||
require('require-self-ref');
|
||||
require('~/test/util/patch-module');
|
||||
|
||||
module.exports = function getRequirePath(target, context) {
|
||||
var resolvedTarget = resolveFrom(context.dirname, target);
|
||||
@ -9,4 +7,4 @@ module.exports = function getRequirePath(target, context) {
|
||||
}
|
||||
var requirePath = context.getRequirePath(resolvedTarget);
|
||||
return requirePath;
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user