@makano/rew 1.2.51 → 1.2.52
Sign up to get free protection for your applications and to get access to all the features.
@@ -43,8 +43,6 @@ module.exports.imp = function (runPath, context) {
|
|
43
43
|
let filepath = path.resolve(path.dirname(context.module.filepath), filename);
|
44
44
|
if(path.extname(filepath) == '.qrew') options.qrew = true;
|
45
45
|
|
46
|
-
// console.log(typeof runPath);
|
47
|
-
|
48
46
|
const lookUp = () => {
|
49
47
|
const otherPath = lookUpInOtherApps(filename);
|
50
48
|
if (!otherPath) throw new Error('Module "' + filename + '" not found');
|
@@ -134,7 +132,7 @@ module.exports.imp = function (runPath, context) {
|
|
134
132
|
|
135
133
|
//** Mock imports section
|
136
134
|
/**/ if(!exports) exports = options.mock;
|
137
|
-
/**/ if(options.mock
|
135
|
+
/**/ if(options.mock === null) return null;
|
138
136
|
/**/ if(!exports) throw new Error('Import '+filename+' does not export anything. Use the "mock" option to mock a value.');
|
139
137
|
//**
|
140
138
|
|