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.
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.
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.
Next step: Set HTTP Cache Headers for Static Assets and HTML
⏱ 0.5h
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
Next step: Enable Response Compression Safely
⏱ 0.5h
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
Next step: Check an Initial Bundle Against Budget
⏱ 0.5h
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.
Next step: Capstone: Bundler Engineer
⏱ 0.33h
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
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h