Skip to content

Commit b0d2ff1

Browse files
committed
44ry
1 parent 7af7b2f commit b0d2ff1

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

compile.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ const outDir = "./compile";
1010
const zip = new AdmZip();
1111

1212
// 添加文件夹到压缩包
13-
zip.addLocalFolder(inputDir, "", (path) => !path.startsWith("index.js"));
13+
zip.addLocalFolder(
14+
inputDir,
15+
"",
16+
(path) => !path.startsWith("index.js") && !path.startsWith("chunk-")
17+
);
1418

1519
console.log("Compiling...");
1620

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docbase",
3-
"version": "0.4.43",
3+
"version": "0.4.44",
44
"type": "module",
55
"bin": "./dist/cli/index.js",
66
"exports": {

packages/app/build.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { join } from "path";
66
import { version } from "~/package.json";
77
import { _dirname } from "./src/utils";
88
import esbuild from "esbuild";
9-
import { wasmLoader } from "esbuild-plugin-wasm";
109
import { platform } from "os";
1110

1211
const deps: string[] = ["@prisma/prisma-schema-wasm"];
@@ -31,10 +30,10 @@ await Promise.all([
3130
entrypoints: ["./src/index.ts"],
3231
external: deps,
3332
outdir: "./dist",
34-
// splitting: true,
33+
splitting: true,
3534
target: "bun",
3635
sourcemap: "external",
37-
// minify: true,
36+
minify: true,
3837
}),
3938
esbuild.build({
4039
entryPoints: ["./src/main.ts"],
@@ -43,9 +42,9 @@ await Promise.all([
4342
sourcemap: "external",
4443
format: "esm",
4544
platform: "node",
45+
minify: true,
4646
target: "esnext",
4747
external: deps,
48-
plugins: [wasmLoader()],
4948
}),
5049
await copy("./prisma", "./dist/prisma"),
5150
import.meta.env.NODE_ENV === "production" &&

packages/app/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"core": "workspace:*",
1919
"es-toolkit": "^1.34.1",
2020
"esbuild": "^0.25.2",
21-
"esbuild-plugin-wasm": "^1.1.0",
2221
"fdir": "^6.4.3",
2322
"hono": "^4.7.6",
2423
"itertools-ts": "^2.2.0",

0 commit comments

Comments
 (0)