AgentStack
SKILL verified MIT Self-run

De8 Bundling

skill-rakibulism-agent-skills-os-de8-bundling · by rakibulism

Track 8 rail — advanced bundling architecture. Vite/Rollup/Webpack setup for creative sites — tree-shaking three.js correctly, route-level and experience-level code splitting, manualChunks vendor pinning, hashed immutable asset caching, Brotli compression, image/SVG build steps, and mandatory bundle analysis. Use whenever configuring build tools, when a bundle is too large or three.js won't tree-…

No reviews yet
0 installs
5 views
0.0% view→install

Install

$ agentstack add skill-rakibulism-agent-skills-os-de8-bundling

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of De8 Bundling? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Advanced Bundling Architecture

Vite is the default for creative sites (Rollup underneath for builds); raw Rollup for libraries; Webpack only under legacy constraints.

Tree-Shaking three.js Correctly

  • Named imports from the package root: import { WebGLRenderer, Scene } from 'three' — modern three is side-effect-free and shakes well.
  • Watch the add-ons: three/examples/jsm/* and drei can pull in far more than expected (controls dragging in whole subsystems). Verify with the analyzer, never assumptions.
  • Import drei components individually where the toolchain benefits; audit what each convenience import costs.

Code Splitting Strategy

  • Route-level splits by default (framework handles it).
  • Experience-level split — the important one: the entire WebGL experience (three, scene code, physics, assets) in its own dynamic import() chunk, loaded on approach per de7-resource-budgets. It must never sit in the critical path (LCP/INP — de7-core-web-vitals).
  • manualChunks (Rollup) pins heavy stable vendors (three, animation libs) into long-cache chunks separate from weekly-changing app code — returning visitors re-download only the small app chunk:
manualChunks: { three: ['three'], vendor: ['react', 'react-dom'] }

Asset Handling

  • Hashed filenames + immutable caching: Cache-Control: public, max-age=31536000, immutable for all static assets; HTML itself short/no-cache (the HTML references new hashes — that's the whole invalidation model).
  • ?url imports for GLB/KTX2/HDR so binaries enter the hashed pipeline.
  • Build-time raster optimization (sharp/vite-plugin based) and SVGO for SVGs.
  • Brotli (+gzip fallback): precompress at build (vite-plugin-compression) if the host doesn't compress at the edge (de8-edge-deployment).

Targets

Modern browsers only (build.target: 'esnext' or baseline-widely-available) — don't pay transpilation and polyfill tax for browsers that can't run WebGL2 anyway.

Analyze Every Release — non-negotiable

rollup-plugin-visualizer / vite-bundle-visualizer: the treemap must be boring. A surprise 300kb dependency is a build failure, not a shrug. Wire byte budgets into CI with size-limit (de8-cicd) so the treemap review has teeth:

[{ "path": "dist/assets/index-*.js", "limit": "200 kb" },
 { "path": "dist/assets/three-*.js", "limit": "160 kb" }]

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.