fis3-hook-lego
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -10,7 +10,11 @@ /** | ||
fis.on('lookup:file', function(info, file) { | ||
// 不处理相对路径的文件和已经处理了的文件 | ||
if (file.isJsLike && info.rest && info.rest[0] !== '.' && !info.id) { | ||
// 不处理相对路径的文件 | ||
// 不能跳过已经有info.id的文件,必须处理 | ||
// 例如: abc.js中require('abc') CommonJs的lookup会找到自己, | ||
// 并不一定需要require('./abc'), 此时如果是想要lego_modules下的abc就惨了 | ||
if (file.isJsLike && info.rest && info.rest[0] !== '.') { | ||
var ret = lookup(info.rest, opts); | ||
if (ret && ret.file) { | ||
info.id = ret.file.getId(); | ||
info.moduleId = ret.file.moduleId || ''; | ||
info.file = ret.file; | ||
@@ -17,0 +21,0 @@ } |
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "fis3-hook-lego", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "lego 包管理模块查找", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -0,0 +0,0 @@ var _ = fis.util, |
@@ -0,0 +0,0 @@ # fis3-hook-lego |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237
11390