Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ECMA Decorators for routing #4546

Open
mehl opened this issue Mar 29, 2025 · 2 comments
Open

Use ECMA Decorators for routing #4546

mehl opened this issue Mar 29, 2025 · 2 comments
Labels
feature New functionality or improvement

Comments

@mehl
Copy link

mehl commented Mar 29, 2025

Runtime

Node

Runtime version

Any

Module version

any

Used with

Hapi as Plugin

Any other relevant information

No response

What problem are you trying to solve?

Using ECMA style decorators for routing.

Do you have a new or modified API suggestion to solve the problem?

I just wondered if there is a plugin for modern ECMA decorators as implemented in esbuild 0.21+; I found only the plugin for the old experimental style decorators.

So I wrote my decorators on my own: GitHub repository

Is there any interest in turning this into a hapi plugin as public npm package?

@mehl mehl added the feature New functionality or improvement label Mar 29, 2025
@Marsup
Copy link
Contributor

Marsup commented Apr 2, 2025

Since this is not supported natively, nor using node's recent typescript support, I'd say it's a bit premature to integrate into hapi, this is probably perfectly fine in a userland plugin.

@mehl
Copy link
Author

mehl commented Apr 5, 2025

True. Just saw I used the tracker for the core package. Maybe this issue would fit better to https://github.com/hapijs/hapi.dev/issues ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality or improvement
Projects
None yet
Development

No branches or pull requests

2 participants