fw-07 step 01 — Dependency graph and bundle
Tasks
- Parse a module's imports with an existing JS parser.
- Build the dependency graph; detect and report cycles.
- Transform each module (reuse
fw-06). - Emit a bundle with a minimal runtime module registry.
- 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"