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

[Feature Request] A babel plugin handle by type-compiler. #380

Open
MatrixAge opened this issue Sep 26, 2022 · 0 comments
Open

[Feature Request] A babel plugin handle by type-compiler. #380

MatrixAge opened this issue Sep 26, 2022 · 0 comments

Comments

@MatrixAge
Copy link

When I use babel-plugin-transform-typescript-metadata to enable tsyringe dependency injection, the ts-loader placed after the babel-loader causes the above babel plugin not to take effect, can provide a babel plugin for handling the relevant metadata in babel.

image

image

@deepkit/type is just so good that I wanted to introduce it in an existing project, but there are a lot of things that depend on babel, hence this request.

After a cursory look at the type-compiler related code, I think it should be easier to write a babel plugin based on the existing transformer, and if I have time, I will try to write a babel plugin based on type-compiler, er, I have never written a babel plugin, this may take a long time.

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

1 participant