mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update app.js
This commit is contained in:
parent
0eebb269f0
commit
4e3b7f7aee
2
app.js
2
app.js
|
@ -211,7 +211,7 @@ function require(FN) {
|
|||
return pos < 0 ? '.' : FN.substr(pos);
|
||||
})(FN.lastIndexOf('.'));
|
||||
|
||||
if ('.js$.coffee$.ls$.ts$.re$'.indexOf(suffix + '$') < 0) FN += ".js";
|
||||
if ('.js$.jse$.coffee$.ls$.ts$.re$.res$'.indexOf(suffix + '$') < 0) FN += ".js";
|
||||
if (cache[FN]) return cache[FN];
|
||||
|
||||
// get file and directory name
|
||||
|
|
Loading…
Reference in New Issue
Block a user