diff --git a/packages/orm/prisma/src/generator/generateCode.ts b/packages/orm/prisma/src/generator/generateCode.ts index b6d68571afe..9d8ed4a50d1 100644 --- a/packages/orm/prisma/src/generator/generateCode.ts +++ b/packages/orm/prisma/src/generator/generateCode.ts @@ -15,7 +15,8 @@ const baseCompilerOptions: CompilerOptions = { module: ModuleKind.ESNext, emitDecoratorMetadata: true, experimentalDecorators: true, - esModuleInterop: true + esModuleInterop: true, + useDefineForClassFields: false }; export interface GenerateCodeOptions { @@ -31,7 +32,9 @@ export async function generateCode(dmmf: DMMF.Document, options: GenerateCodeOpt const project = new Project({ compilerOptions: { ...baseCompilerOptions, - ...(emitTranspiledCode && {declaration: true}) + ...(emitTranspiledCode && { + declaration: true + }) } });