chore: format code and improve readability in build.ts

This commit is contained in:
Jonas Perusquia Morales
2026-04-16 13:14:36 -06:00
parent 01e54fcbc9
commit 3f0e924f69
+7 -4
View File
@@ -18,8 +18,8 @@ const oldConsole = {
log: console.log,
warn: console.warn,
};
console.log = () => {};
console.warn = () => {};
console.log = () => { };
console.warn = () => { };
const define = {
__isDev: "0",
@@ -97,12 +97,15 @@ async function buildApi() {
entry: [
"src/index.ts",
"src/core/utils/index.ts",
"src/plugins/index.ts",
"src/modes/index.ts",
],
unbundle: false,
outDir: "dist",
deps: {
neverBundle: [...neverBundle],
neverBundle: [
...neverBundle
],
},
target: "esnext",
@@ -430,5 +433,5 @@ if (watch) {
});
// keep process alive
await new Promise(() => {});
await new Promise(() => { });
}