Skip to content

Use ECMA Decorators for routing #4546

Open

Description

@mehl

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?

Activity

  1. added
    featureNew functionality or improvement
    on Mar 29, 2025
  2. Marsup commented on Apr 2, 2025

    @Marsup
    Contributor

    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.

  3. mehl commented on Apr 5, 2025

    @mehl
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew functionality or improvement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions