From d8bc929d7b0a08d2c7b3a14ea629a7190b390ee6 Mon Sep 17 00:00:00 2001 From: JJ Teoh Date: Sat, 20 Jul 2024 18:35:23 +0800 Subject: [PATCH] fix: :zap: Adds minify-syntax and minify-whitespace Bun build's `--minify` breaks Logestic's build, further identified it's specifically `--minify-identifiers` that is causing the issue --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4b5eef9..392a242 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "module": "src/index.ts", "type": "module", "scripts": { - "build": "rimraf dist && bun build src/index.ts --outdir dist --target bun --minify -e elysia && tsc", + "build": "rimraf dist && bun build src/index.ts --outdir dist --target bun --minify-syntax --minify-whitespace -e elysia && tsc", "test": "bun test", "prepublishOnly": "bun run build" }, @@ -45,4 +45,4 @@ "dependencies": { "chalk": "^5.3.0" } -} +} \ No newline at end of file