const {build} = require("esbuild"); const {solidPlugin} = require("esbuild-plugin-solid"); const path = require("path"); const fs = require("fs"); build({ platform: "node", entryPoints: [ "src/main.ts", ], bundle: true, minify: false, logLevel: "info", plugins: [solidPlugin({ solid: { generate: "ssr", hydratable: true, }, })], outdir: "dist", format: "cjs", external: [ "@nestjs/*", "@fastify/*", "class-validator", "class-transformer", "cache-manager", ], });