• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jlfwong / speedscope / 19801337491

30 Nov 2025 03:56PM UTC coverage: 43.466% (+0.01%) from 43.456%
19801337491

Pull #534

github

web-flow
Merge a317851e5 into b1a7b93e1
Pull Request #534: Update ESBuild to 0.27.0

1633 of 3794 branches covered (43.04%)

Branch coverage included in aggregate %.

0 of 2 new or added lines in 1 file covered. (0.0%)

2741 of 6269 relevant lines covered (43.72%)

9951.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/scripts/dev-server.ts
1
import * as esbuild from 'esbuild'
×
2
import {existsSync, mkdirSync} from 'fs'
×
3
import {buildOptions, generateIndexHtml} from './esbuild-shared'
×
4

5
async function main() {
6
  const outdir = 'dist'
×
7
  if (!existsSync(outdir)) {
×
8
    mkdirSync(outdir)
×
9
  }
10
  let ctx = await esbuild.context({
×
11
    ...buildOptions,
12
    outdir,
13
    write: false,
14
    metafile: true,
15
    plugins: [
16
      {
17
        name: 'speedscope-dev-server',
18
        setup(build) {
19
          build.onEnd(buildResult => {
×
20
            generateIndexHtml({
×
21
              buildResult,
22
              outdir,
23
              servingProtocol: 'http',
24
            })
25
          })
26
        },
27
      },
28
    ],
29
  })
30

31
  await ctx.rebuild()
×
32

NEW
33
  let {hosts, port} = await ctx.serve({
×
34
    servedir: outdir,
35
  })
36

NEW
37
  console.log(`Server is running at http://${hosts[0]}:${port}`)
×
38
}
39

40
main()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc