eeg_nest/esbuild2.js

52 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-05-07 00:06:11 +00:00
const { build } = require("esbuild");
const { solidPlugin } = require("esbuild-plugin-solid");
2023-05-06 11:57:46 +00:00
const path = require("path");
const fs = require("fs");
2023-05-07 00:06:11 +00:00
const { glob } = require("glob");
2023-05-06 11:57:46 +00:00
2023-05-07 00:06:11 +00:00
glob("dist/**/*.jsx")
.then((files) => {
build({
platform: "node",
entryPoints: files,
bundle: false,
minify: false,
logLevel: "info",
plugins: [solidPlugin({
solid: {
generate: "ssr",
hydratable: true,
},
})],
outdir: "dist/src",
format: "cjs",
});
});
/*
2023-05-06 11:57:46 +00:00
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",
],
});
2023-05-07 00:06:11 +00:00
*/