vitejs / vite-plugin-react-swc

Speed up your Vite dev server with SWC
MIT License
831 stars 54 forks source link

Append tsDecoratorMeta option #114

Closed vicimpa closed 1 year ago

vicimpa commented 1 year ago

Very need option for TypeScript decorators

ArnaudBarre commented 1 year ago

For now we decided not to provide this option to encourage people using only spec validated syntax and limit the mess it creates later when it changes (hello useDefineForClassFields). You can read more in this previous PR

I'm curious, what lib is requiring you to use decorator metadata?

ALiangLiang commented 1 year ago

For now we decided not to provide this option to encourage people using only spec validated syntax and limit the mess it creates later when it changes (hello useDefineForClassFields). You can read more in this previous PR

I'm curious, what lib is requiring you to use decorator metadata?

I'm using TypeORM in frontend. I need the feature to declare type of attributes.

vicimpa commented 1 year ago

На данный момент мы решили не предоставлять эту опцию, чтобы побудить людей использовать только проверенный синтаксис и ограничить беспорядок, который он создает позже при изменении (привет useDefineForClassFields ). Вы можете прочитать больше в этом предыдущем пиаре.

Мне любопытно, какая библиотека требует от вас использования метаданных декоратора?

I wanted to write my own data serializer using classes. I had to use crutches declaratively. https://github.com/vicimpa/openbomber/blob/main/core/Proto.ts