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

Add babel-plugin-transform-typescript-metadata plugin #333

Open
darbio opened this issue Nov 6, 2022 · 3 comments
Open

Add babel-plugin-transform-typescript-metadata plugin #333

darbio opened this issue Nov 6, 2022 · 3 comments

Comments

@darbio
Copy link

darbio commented Nov 6, 2022

Thanks for your great plugin - saves us a lot of time and effort getting things up and running.

Lots of projects use typescript metadata (e.g. tsyringe, typestack, typegoose ... to name a few).

We are trying to implement dependency injection framework tsyringe into our stack to simplify dependency resolution, and in order for this to work with babel, we have to install the babel plugin babel-plugin-transform-typescript-metadata.

Decorators especially are a highly used part of typescript so it would be good to be able to support them in this plugin.

@enchorb
Copy link

enchorb commented Nov 29, 2022

+1 this is needed for libraries like typeorm

@dpecos
Copy link

dpecos commented Mar 17, 2023

+1 typeorm does not work with esbuild enabled unless we annotate absolutely everything, which is not needed when esbuild is disabled.

esbuild not emiting metadata is the root cause for that problem, but that feature is not exposed via config.

@ricardo-cn
Copy link

+1. That'd be great.

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

No branches or pull requests

4 participants