elysiajs / elysia

Ergonomic Framework for Humans
https://elysiajs.com
MIT License
9.73k stars 207 forks source link

whitespace minification on application source code breaks `({query }) => ...` #724

Closed paperdave closed 1 month ago

paperdave commented 1 month ago

What version of Elysia.JS is running?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

// @bun
import Elysia from "elysia";
var app = new Elysia;

//             | space missing here breaks
app.get("/", ({query }) => { console.log("Query:", query) });

app.listen(4122);

What is the expected behavior?

receive query parameters

What do you see instead?

undefined

Additional information

Originally reported here https://github.com/oven-sh/bun/issues/12594

SaltyAom commented 1 month ago

Should have been fixed with 69eb72a, published under 1.1.2

mavyfaby commented 1 month ago

I can confirm this works now: image

Thank youu @SaltyAom