@makano/rew 1.2.98 → 1.2.99
Sign up to get free protection for your applications and to get access to all the features.
@@ -71,7 +71,7 @@ module.exports.imp = function (runPath, context) {
|
|
71
71
|
const foundCache = cachedFiles.find((f) => f.filepath == type+':'+filepath);
|
72
72
|
|
73
73
|
if (!ispkg && foundCache) {
|
74
|
-
exports = options.useDefaultForPackages === false ? foundCache.exports.default || foundCache.exports : _returns(options, foundCache.exports);
|
74
|
+
exports = type === 'coffee' || type === REW_FILE_TYPE.EXTENSION ? foundCache.exports : options.useDefaultForPackages === false ? foundCache.exports.default || foundCache.exports : _returns(options, foundCache.exports);
|
75
75
|
}
|
76
76
|
|
77
77
|
if (!ispkg && !existsSync(filepath) && !foundCache) {
|