Closed ccalderon9411 closed 2 years ago
This is expected because you are minimizing the code. By doing so, webpack changes the names of the classes, and the metadata read at runtime reflects those names. If you don't really need minimization (there isn't much need for it on the server side) then I'd suggest not using it
Hi @jmcdo29 Is there any configuration for webpack that transpiles the code in a single file? similar to monorepo but for applications.
Just using nest build --webpack
should do that automatically.
@jmcdo29 Great, and does it detect if the transpiling is for production? or do you have to expand the configuration?
Is there an existing issue for this?
Current behavior
I am building a nestjs application using webpack, but it build, the schemas of DTO´s breaks.
Application in dev
Application build (schemas breaks)
Minimum reproduction code
https://github.com/rudemex/nestjs-starter.git
Steps to reproduce
Expected behavior
Schemas names should be as I define in code.
Package
Other package
@nestjs/swagger @nestjs/class-transformer @nestjs/class-validator class-transformer
NestJS version
8.2.6
Packages versions
Node.js version
14.17.0
In which operating systems have you tested?
Other
No response