← All Learning Paths

Bundler Engineer

Own the build pipeline: dependency graphs, build caches, static asset versioning, cache headers, and the Vite, Webpack, and ESM failures that break builds at 2 a.m.

roleintermediate5 nodes12.83h total

Path overview

打包器工程师的日常是在依赖图、缓存与模块系统三重迷宫里穿行。本路径从构建缓存与依赖图讲起,覆盖产物版本化、缓存头与压缩三个上线配方,再直面循环依赖、ESM 迁移、Vite 预构建与 Webpack OOM 四类高频构建事故。

The bundler engineer navigates dependency graphs, caches, and module systems daily. This path covers build caching, dependency graphs, asset versioning, compression, and the classic Vite, Webpack, and ESM failures.

  1. Apply "Version Static Assets for Long-Lived Caching" to a bundler task, checking that "Build output contains names such as app.9f2c1a.js that change whenever the content changes." appears after the "Let browsers cache JavaScript and CSS for a year while every deploy still reaches users" step.

    Completion criteria: Deliver a transcript of "Version Static Assets for Long-Lived Caching" with each step's command and observed state, ending at "Let browsers cache JavaScript and CSS for a year while every deploy still reaches users".

    Next step: Set HTTP Cache Headers for Static Assets and HTML

    ⏱ 0.5h

  2. Execute "Set HTTP Cache Headers for Static Assets and HTML" end to end, then repeat the last step with one parameter changed and compare "Configure response headers so hashed assets are cached for a year and HTML entry points".

    Prerequisites: Version Static Assets for Long-Lived Caching

    Completion criteria: Show the command for every step of "Set HTTP Cache Headers for Static Assets and HTML" and paste the output proving "Configure response headers so hashed assets are cached for a year and HTML entry points"; then note the step where "Filenames such as app.3f9c2a1b.js with a content hash." appears.

    Next step: Enable Response Compression Safely

    ⏱ 0.5h

  3. Run "Cut transfer size for text responses while avoiding double compression, broken streaming," from "Enable Response Compression Safely" and confirm the documented result "Responses larger than 1 KB are sent with Content-Encoding: gzip when the client advertises".

    Prerequisites: Set HTTP Cache Headers for Static Assets and HTML

    Completion criteria: Run "Enable Response Compression Safely" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Check an Initial Bundle Against Budget

    ⏱ 0.5h

  4. Turn JSON object: { chunks: [{ name, sizeKb, initial }], budgetKb } into {initialKb:200,overBudget:true,largestChunk:main} by completing "Check an Initial Bundle Against Budget" with a reproducible script and a failing-case note.

    Completion criteria: Show the test run for "Check an Initial Bundle Against Budget" with two passing samples and one deliberately failing input, with the expected error.

    Next step: Capstone: Bundler Engineer

    ⏱ 0.33h

  5. Ship "Semver range parsing and satisfaction for caret, tilde, exact, and wildcard ranges" from "Build a Mini Package Manager with Semver Resolution", then prove it with the project's test suite and an acceptance note.

    Prerequisites: Check an Initial Bundle Against Budget

    Completion criteria: Run the project's test command for "Build a Mini Package Manager with Semver Resolution", paste the passing output, and attach the acceptance note for "Semver range parsing and satisfaction for caret, tilde, exact, and wildcard ranges" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h