Update app.js

This commit is contained in:
Namhyeon Go 2024-01-26 16:58:27 +09:00
parent bafc0a085d
commit 01be6b6252

2
app.js
View File

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