chore: format code and improve readability in build.ts
This commit is contained in:
+7
-4
@@ -18,8 +18,8 @@ const oldConsole = {
|
|||||||
log: console.log,
|
log: console.log,
|
||||||
warn: console.warn,
|
warn: console.warn,
|
||||||
};
|
};
|
||||||
console.log = () => {};
|
console.log = () => { };
|
||||||
console.warn = () => {};
|
console.warn = () => { };
|
||||||
|
|
||||||
const define = {
|
const define = {
|
||||||
__isDev: "0",
|
__isDev: "0",
|
||||||
@@ -97,12 +97,15 @@ async function buildApi() {
|
|||||||
entry: [
|
entry: [
|
||||||
"src/index.ts",
|
"src/index.ts",
|
||||||
"src/core/utils/index.ts",
|
"src/core/utils/index.ts",
|
||||||
|
"src/plugins/index.ts",
|
||||||
"src/modes/index.ts",
|
"src/modes/index.ts",
|
||||||
],
|
],
|
||||||
unbundle: false,
|
unbundle: false,
|
||||||
outDir: "dist",
|
outDir: "dist",
|
||||||
deps: {
|
deps: {
|
||||||
neverBundle: [...neverBundle],
|
neverBundle: [
|
||||||
|
...neverBundle
|
||||||
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
target: "esnext",
|
target: "esnext",
|
||||||
@@ -430,5 +433,5 @@ if (watch) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// keep process alive
|
// keep process alive
|
||||||
await new Promise(() => {});
|
await new Promise(() => { });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user