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