Frontend bundling via Bun

Bundling via Bun with Make targets for typecheck and bundling

rcarmo Updated 910 repo stars
Apfelstrudel Interface

File contents

Skill: Frontend bundling via Bun

Goal

Provide Make targets for TypeScript typecheck + bundling using Bun.

Recommended targets

  • make install — install deps
  • make typecheck — TypeScript type checking
  • make build — typecheck + bundle for production
  • make build-client — bundle frontend only
  • make build-client-dev — bundle frontend with sourcemaps
  • make vendor — rebuild vendored frontend deps

Vendoring

All frontend JS dependencies are vendored in public/vendor/. The make vendor target rebuilds them from node_modules/. Import maps in index.html resolve bare specifiers to vendored files.

rcarmo/apfelstrudel commit d37804a6de

Frequently asked questions

npx get-skill add rcarmo/frontend-bundling-via-bun