Skip to content

Commit

Permalink
fix: ⚡ Adds minify-syntax and minify-whitespace (#35)
Browse files Browse the repository at this point in the history
Bun build's `--minify` breaks Logestic's build, further identified it's specifically `--minify-identifiers` that is causing the issue
  • Loading branch information
Ripwords authored Jul 20, 2024
1 parent 8b9bf08 commit 6e32c72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"module": "src/index.ts",
"type": "module",
"scripts": {
"build": "rimraf dist && bun build src/index.ts --outdir dist --target bun -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",
"preview": "bun run --cwd preview dev",
"prepublishOnly": "bun run build && { echo '/*'; cat LICENSE; echo '*/'; cat dist/index.js; } > /tmp/index.js && mv /tmp/index.js dist/index.js"
Expand All @@ -46,4 +46,4 @@
"dependencies": {
"chalk": "^5.3.0"
}
}
}

0 comments on commit 6e32c72

Please # to comment.