Commit f89fc09
committed
docs(rfc): module protocol v2 — declaration in package.json + manifest contract
RFC 0001 draft (status: Accepted — pending implementation). Replaces the
current entry.node.ts `modules: { links, imports, exports, scopes }` configuration
+ `pkg:` / `root:` prefix DSL with three things:
1. **Declaration** in the `package.json` `esmx` field — a module declares only
facts about itself (local knowledge).
2. **Manifest** as the deployment contract — adds `protocol`, `version`, and
`uses` transcriptions to what build produces.
3. **Deterministic link-time resolution** — auto-wiring from declarations,
hard build-time errors with fixes that always live in existing declarations,
plus an emitted audit artifact.
Breaking by intent — correctness over compatibility. Three independent expert
reviews (module resolution / TypeScript, bundler internals, micro-frontend
architecture) cited in §11.1 parent 60d02d4 commit f89fc09
1 file changed
Lines changed: 419 additions & 0 deletions
0 commit comments