TypeScript 5 Decorators + Esbuild #19066
-
Hello 👋, I read esbuild now supports TypeScript decorators. The error is with the decorators. No matter if I add the decorators before or over the export keyboard, or after it, I get an error. @qb.group({
imports: [AuthGroup]
})
export class AppGroup<T> implements qb.QbGroupLifeCycle {
async onInit(options?: qb.QbGroup<T>) {
}
}
Happens at dev and at build. I tried with I'll appreciate any info, thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Oooh, decorators are not working at all:
|
Beta Was this translation helpful? Give feedback.
-
Apparently it only works with Experimental Decorators, not with the new official ones... |
Beta Was this translation helpful? Give feedback.
-
UpdateIt works with the new decorators, but only with
At least I can work with bun or tsx with watch mode. |
Beta Was this translation helpful? Give feedback.
-
Try changing esbuild.target option in vite.config.js export default {
esbuild: {
target: "es2022"
}
} This works for me. reference: #17308 |
Beta Was this translation helpful? Give feedback.
Try changing esbuild.target option in vite.config.js
This works for me.
reference: #17308