All workAndrew Cates.

Project 41 of 84

forgepack

Webpack configuration factories (browserConfig, ssrConfig, libraryConfig) published as the npm package @surf/forgepack, so an app, its SSR bundle and a shared component library each get a production webpack config from a few lines of options instead of hundreds of lines of hand-maintained config.

Status
Shipped
Area
Developer Tooling & CLIs
Last activity
2026
Live

No public deployment.

Stack
  • JavaScript
  • Node
  • webpack
  • webpack-dev-server
  • Babel
  • PostCSS / Sass / CSS Modules
  • SVGR
  • workbox-webpack-plugin

Highlights

  1. Found and fixed a crash where forgepack's browser and SSR webpack factories threw ReferenceError in any real webpack.config.mjs (CommonJS __filename/require usage masked by Vitest's injected globals), and locked it in with a test that executes the configs in a plain Node process.
  2. Restored broken service-worker precaching by migrating the Workbox integration from v4-era options to workbox-webpack-plugin 7 and adding an opt-in useServiceWorkers flag that emits one precaching worker per HTML page, verified by a real fixture compile.
  3. Expanded the test suite from 98 to 175 tests covering previously untested path/env helpers, build/asset helpers, the dev-server module, HTML plugins, and the Babel dependencies preset, and added report-only v8 coverage (71.85% line baseline, measured on PR #3 before the new tests landed). The new tests surfaced two latent defects, which were triaged into the backlog.
  4. Audited the README against the package's exports map and removed false capability claims (asset-manifest emission, dev-server export path), documenting every public subpath as supported or internal so consumers no longer rely on behavior the code didn't have.
  5. Migrated the package from npm to pnpm and extended vendored workspace discovery to read pnpm-workspace.yaml (ignoring settings-only files used by pnpm 11), so pnpm monorepos stopped silently falling back to a standalone build.
  6. Transferred the repo into the catesworks GitHub org, repaired CI broken by a pnpm 11 bump by moving it to Node 24 on self-hosted macOS ARM64 runners, adopted the org's shared ESLint/Prettier configs, and wired a Changesets release pipeline using npm Trusted Publishing (OIDC) instead of a stored token.
  7. Seeded a beads backlog of seven epics from a README/source audit, then worked through much of it in a 2026-11-14 sweep that produced four PRs (#3 to #6) covering bug fixes, tests, docs, OSS repo hygiene (CONTRIBUTING, SECURITY, Code of Conduct, issue/PR templates, Node pin) and CI trimming, with owner-gated decisions recorded in a follow-ups dossier.