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
Allow alternatives to reflect-metadata for shimming reflect metadata API #761
Comments
i will consider it when we switch to ESM, because from what i can tell the mentioned library is ESM-only, which is a problem because typegoose will not switch to that any time soon, see #214 (from what i know CJS can be used in ESM, but ESM not in CJS without having a async function somewhere and typegoose currently is sync) |
just had a user in discord having a problem where so i will consider adding a way to change the reflection package used sooner just as a note though, if the current |
We are using Typegoose with |
@KeithGillette did you confirm that only that reflect library is running? because |
No, @hasezoey, I did not realize that |
Describe what you need | want
Typegoose requires a shim for the reflect metadata API but does not need to require
reflect-metadata
(which is old and heavy) specifically. There are alternatives such as https://github.com/abraham/reflectionDo you have already an idea for the implementation?
Yes. Interchangability of reflect metatdata shims is already implemented by TypeGraphQL; see MichalLytek/type-graphql#1331 (comment)
The text was updated successfully, but these errors were encountered: