elysiajs/elysia

whitespace minification breaks build

Opened this issue · 1 comments

What version of Elysia is running?

v1.1.16

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

Run bun build --minify-whitespace --target=bun --outfile=../dist/server index.ts on my project.

What is the expected behavior?

It shouldn't break.

What do you see instead?

{
  "type": "validation",
  "on": "response",
  "summary": "Property 'totalTime' is missing",
  "property": "/totalTime",
  "message": "Required property",
  "expected": {
    "totalTime": []
  },
  "found": {},
  "errors": [
    {
      "type": 45,
      "schema": {
        "type": "array",
        "items": {
          "type": "integer"
        }
      },
      "path": "/totalTime",
      "message": "Required property",
      "summary": "Property 'totalTime' is missing"
    },
    {
      "summary": "Expected array",
      "type": 6,
      "schema": {
        "type": "array",
        "items": {
          "type": "integer"
        }
      },
      "path": "/totalTime",
      "message": "Expected array"
    }
  ]
}

Additional information

No response

Have you try removing the node_modules and bun.lockb and try again yet?

No response

#724 still happening