mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-11 16:35:13 +00:00
Update app.js
This commit is contained in:
parent
bafc0a085d
commit
01be6b6252
2
app.js
2
app.js
|
@ -218,7 +218,7 @@ function require(FN) {
|
|||
return pos < 0 ? '.' : FN.substr(pos);
|
||||
})(FN.lastIndexOf('.'));
|
||||
|
||||
if ('.js$.jse$.coffee$.ls$.ts$.re$.res$'.indexOf(suffix + '$') < 0) FN += ".js";
|
||||
if ('.js$.jse$.coffee$.ls$.ts$.re$.res$.enc$'.indexOf(suffix + '$') < 0) FN += ".js";
|
||||
if (cache[FN]) return cache[FN];
|
||||
|
||||
// get file and directory name
|
||||
|
|
Loading…
Reference in New Issue
Block a user