eeg_nest/esbuild2.js

30 lines
600 B
JavaScript
Raw Normal View History

2023-05-06 11:57:46 +00:00
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",
],
});