import { build } from 'esbuild'; import { fileURLToPath } from 'node:url'; await build({ absWorkingDir: fileURLToPath(new URL('.', import.meta.url)), entryPoints: ['src/otel-rum.ts', 'src/otel-todo.ts'], outdir: '../static', bundle: true, format: 'iife', platform: 'browser', target: ['es2020'], minify: true, sourcemap: 'external', logLevel: 'info', });