Update app.js

This commit is contained in:
Namhyeon Go 2023-12-11 11:20:36 +09:00 committed by GitHub
parent 0eebb269f0
commit 4e3b7f7aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
app.js
View File

@ -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