drupflare/drangler - v0.1.0
    Preparing search index...

    Function parseWranglerGzipBytes

    • Reads the gzipped bundle size out of wrangler's own output.

      Wrangler prints KiB (gzip: 2818.80 KiB) and the ceiling is in bytes, so the conversion is the whole point of this function. drupflare/worker's report has already quoted one such figure as bytes, which overstated the headroom by 67,406.

      Parameters

      • stdout: string

      Returns number | undefined

      bytes, or undefined when the line is absent, which means the run failed rather than that the bundle is small.