molefrog / wouter

🥢 A minimalist-friendly ~2.1KB routing for React and Preact
https://npm.im/wouter
The Unlicense
6.65k stars 152 forks source link

Transpile the build for older browsers. #454

Closed abhishekoza closed 3 months ago

abhishekoza commented 4 months ago

Wouter lib uses optional chaining which is not supported by older browsers. Can we transpile it while building so its compatible?

molefrog commented 4 months ago

Hi! We support ES2020 onward (the readme says 2019, but that is a typo. we'll fix it, thanks) and don't ship transpiled code. Is there a chance you can configure your bundler to transpile it for you?

abhishekoza commented 4 months ago

I can transpile on my end. I just thought to bring this to attention as I thought its very common to have a build where code is transpiled. Thank you

On Tue, Jun 4, 2024, 06:54 Alexey Taktarov @.***> wrote:

Hi! We support ES2020 onward (the readme says 2019, but that is a typo. we'll fix it, thanks) and don't ship transpiled code. Is there a chance you can configure your bundler to transpile it for you?

— Reply to this email directly, view it on GitHub https://github.com/molefrog/wouter/issues/454#issuecomment-2147600437, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE7TQD5WQMXPG6ULJLHOZTZFXBJHAVCNFSM6AAAAABIXONMKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXGYYDANBTG4 . You are receiving this because you authored the thread.Message ID: @.***>