feat: Optimizing Framework Code

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-03-25 17:13:54 +08:00
parent 478bff9599
commit 8cf8dccbe4
5 changed files with 30 additions and 17 deletions

View File

@ -240,7 +240,7 @@
file = _isFile(file) ? file : resolve(name, path);
optional = Object.assign({ cache: true }, optional);
if (file === undefined) {
throw Error("Can't found module" + name + 'in directory' + path)
throw Error("Can't found module " + name + " in directory " + path)
}
// 重定向文件名称和类型
return getCacheModule(_canonical(file), file.name.split(".")[0], file, optional);