Fix: exclude certain extensions from source folder

This commit is contained in:
SukkaW 2024-01-11 12:53:16 +08:00
parent 26655e6200
commit 0a974c9e9f

View File

@ -26,7 +26,8 @@ export const buildCommon = task(import.meta.path, async () => {
continue; continue;
} }
if (path.extname(entry.name) === '.js') { const extname = path.extname(entry.name);
if (extname === '.js' || extname === '.ts') {
continue; continue;
} }