feat: 更新 fs 类库 优化 require

This commit is contained in:
coding
2018-01-09 12:16:36 +00:00
parent 318a7cdcfd
commit a6be26206e
2 changed files with 32 additions and 12 deletions

View File

@ -260,8 +260,7 @@
};
}
// 判断是否存在 isFile 不存在说明 parent 是一个字符串 需要转成File
if (parent.isFile) {
if (typeof parent === "string") {
parent = new File(parent);
}
var cacheModules = [];