TriPSs / nestjs-query

Easy CRUD for GraphQL.
https://tripss.github.io/nestjs-query/
MIT License
157 stars 43 forks source link

Support SWC Loader #278

Closed jbeck018 closed 2 months ago

jbeck018 commented 3 months ago

Is your feature request related to a problem? Please describe. Currently, running NestJS with SWC Loader is not possible (for build and start phase) because of the way that DTOs are handled.

I've hit multiple issues:

Have you read the Contributing Guidelines?

Yes

Describe the solution you'd like Support for SWC including ways to avoid circular imports similar to TypeOrms Relation function.

Describe alternatives you've considered Currently we are using swc for dev purposes by building with Webpack initially, but it'd be nice to be able to get the build gains by compiling only through SWC

Additional context Add any other context or screenshots about the feature request here.

jbeck018 commented 2 months ago

This is related to file creation and circular imports.

Fix for me was to just either create the dto wit hthe entity OR combine my .dto.ts file in to my .entity.ts file.

Closing.