mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-15 06:01:04 +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);
|
return pos < 0 ? '.' : FN.substr(pos);
|
||||||
})(FN.lastIndexOf('.'));
|
})(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];
|
if (cache[FN]) return cache[FN];
|
||||||
|
|
||||||
// get file and directory name
|
// get file and directory name
|
||||||
|
|
Loading…
Reference in New Issue
Block a user