: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
// The web workers the app loads from /static at runtime, in one place so the production build
// (build.mjs) and the dev watcher (bin/watch-workers.mjs) cannot drift. Vite serves the app in
// dev but does not build these, so without the watcher they are simply absent locally and every
// worker is unavailable locally.
export const WORKER_ENTRIES = [
{
name: 'Terminal Worker',
entryPoint: 'src/scenes/terminal/terminalWorker.ts',
outfileName: 'terminalWorker.js',
// v86 also ships Node transports, which must not enter the browser worker bundle.
define: { process: 'undefined', require: 'undefined' },
},
{
name: 'Decompression Worker',
entryPoint: 'src/scenes/session-recordings/player/snapshot-processing/decompressionWorker.ts',
outfileName: 'decompressionWorker.js',
},
{
name: 'HogQL Parser Worker',
entryPoint: 'src/scenes/data-warehouse/editor/hogqlParserWorker.ts',
outfileName: 'hogqlParserWorker.js',
},
{
name: 'ELK Layout Worker',
entryPoint: 'src/lib/elkWorker.ts',
outfileName: 'elkWorker.js',
},
{
name: 'Monaco Editor Worker',
entryPoint: 'src/lib/monaco/workers/editor.worker.ts',
outfileName: 'monacoEditorWorker.js',
},
{
name: 'Monaco JSON Worker',
entryPoint: 'src/lib/monaco/workers/json.worker.ts',
outfileName: 'monacoJsonWorker.js',
},
{
name: 'Monaco TypeScript Worker',
entryPoint: 'src/lib/monaco/workers/ts.worker.ts',
outfileName: 'monacoTsWorker.js',
},
]