:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
#!/usr/bin/env node
import * as path from 'path'
import { fileURLToPath } from 'url'
import { buildInParallel } from '@posthog/esbuilder'
export const __dirname = path.dirname(fileURLToPath(import.meta.url))
await buildInParallel(
[
{
entryPoints: ['src/index.ts'],
bundle: true,
outdir: 'dist',
absWorkingDir: __dirname,
},
],
{
async onBuildComplete() {
console.info('Build complete')
},
}
)