fw-07 step 01 — Dependency graph and bundle

Tasks

  1. Parse a module's imports with an existing JS parser.
  2. Build the dependency graph; detect and report cycles.
  3. Transform each module (reuse fw-06).
  4. Emit a bundle with a minimal runtime module registry.
  5. Create a cycle with top-level usage and observe the partially-initialised module. Explain why this is inherent to circular imports rather than a bundler bug.

Done when

  • A multi-module app bundles and runs
  • Cycle detection reports a useful path, not just "cycle found"