yceffort
10 POSTS

Bundler 1

  • ◆ Building coldpath Part 4
    #bundler#debugging#compiler

    How Bundlers Remember Imports

    Tracing a coldpath misclassification that read every synchronous dependency in the Turbopack analysis file as a static import. This post compares the graph information and build output of webpack, Turbopack, Vite, and esbuild, and looks at which clues reveal the original syntax and which cases cannot be recovered.

    29 min read
  • ◆ Building coldpath Part 2
    #web-performance#bundler#debugging

    Building a Bundle Analyzer with V8 Coverage and Source Maps

    Chuseok side quest, part 2: building a V8 coverage analyzer, one dead end after another.

    Updated 24 min read
  • ◆ Building coldpath Part 1
    #web-performance#bundler#blogging

    Tracing When This Blog's JavaScript Actually Runs

    Chuseok side quest, part 1: starting with my own blog

    20 min read
  • #web-performance#javascript#browser

    I Grew Never-Executed JavaScript to 10MiB

    How much do you lose when 10MiB of functions you never call ships to the browser? I ran 855 measurements to separate the cost of file size from the cost of code shape. Uncalled declarations cost about 21ms per MiB, while initialization code that runs the moment the file is read took 201ms per MiB on the main thread. With real libraries, merely importing a module was enough to evaluate it.

    32 min read
  • #bundler#web-performance#debugging

    Tearing Apart a Third-Party SDK and Rebuilding It My Way: Without Touching a Single Line of Logic

    I imported one constant and 97.7% of the bundle came along with it. The vendor had no timeline for a fix, so I recovered over 400 TypeScript files from the published source maps, rebuilt the build, entry points, and dependencies while leaving the logic alone, and cut the raw size of /send by 77.5%. All 1,932 tests passed, but a few of them were checking nothing at all, so I had to work out again how far I could confirm that the rebuilt SDK behaves the same as the original.

    41 min read
  • #debugging#bundler#nextjs

    Next.js Turbopack Turned One Singleton into Two: A Scope Hoisting Bug and a Circular Import

    In a Next.js 16 Turbopack production build, a module-scope singleton became two live instances at runtime. Inside the same synchronous block, one condition contradicted the other, and responses that arrived in 30ms still timed out. I found the cause by following a partial scope hoisting merge and a circular import through the bundle output, and confirmed the same bug had already been fixed upstream.

    16 min read
  • #bundler#code-review#web-performance

    The invisible cost in PR diffs: we are not reviewing the code our users receive

    The bundle costs that code review misses, and how to surface them in the PR.

    22 min read
  • ◆ Directive Deep Dive Part 1
    #react#nextjs#bundler

    'use client' Directive Deep Dive: To the Edge of Client Boundaries

    Module boundaries created by a single line of 'use client', build-time transformations, Flight serialization, and performance implications

    33 min read
  • ◆ Web Service Performance Analysis Part 2
    #web-performance#bundler

    Web Service Performance Analysis (2)

    Thank you for your interest. 🙇🏻‍♂️

    23 min read
  • ◆ Web Service Performance Analysis Part 1
    #web-performance#bundler

    Web Service Performance Analysis (1)

    Thank you for your interest. 🎉

    17 min read