mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
14 lines
581 B
JavaScript
14 lines
581 B
JavaScript
import esbuild from 'esbuild';
|
|
|
|
esbuild
|
|
.build({
|
|
entryPoints: ['src/generated/prisma/client.js'], // Adjust this to your entry file
|
|
bundle: true, // Bundle all files into one (optional)
|
|
outfile: 'dist/generated/prisma/client.js', // Output file
|
|
platform: 'node', // For Node.js compatibility
|
|
target: 'es2020', // Target version of Node.js
|
|
format: 'esm', // Use ESM format
|
|
sourcemap: true, // Optional: generates source maps for debugging
|
|
external: [], // Optional: Exclude external dependencies from bundling
|
|
})
|
|
.catch(() => process.exit(1));
|