Runtime internals
This section explains how qiankun v3 is implemented. It is intended for contributors, maintainers, and readers debugging behavior that cannot be understood from the public contract alone.
You do not need these pages to integrate a micro-app. Start with Loading a micro-app instance, then use the guides and API reference for supported behavior.
Topics
- Runtime orchestration: how the public loading APIs connect the loader, sandbox, and lifecycle pipeline.
- Lifecycle resolution: how Classic and ESM exports become a lifecycle object.
- Streaming HTML Entry: streams, DOM submission, head virtualization, and asset transformation.
- JavaScript sandbox: the membrane, compartment, patchers, and multi-instance state.
- Style isolation: CSS transformation, external stylesheets, and runtime CSSOM handling.
- ESM sandbox: module rewriting, runtime import maps, evaluation order, and realm cleanup.
Stability
Names, source paths, and control flow in this section are implementation details. They may change without a public API deprecation. Build integrations against documented APIs and observable behavior, not these internals.
Design rationale that should outlive a particular implementation belongs in the RFCs.
