34. Build-Time Dependency Analysis

The Problem

Deep component trees can cause repeated runtime discovery unless dependencies are known before execution.

The React Difficulty

React build tools understand JavaScript module dependencies, but business-level component injection relationships can be application-specific and may not be represented by normal imports.

React Approach

const A = lazy(() => import("./A"));
// A's JavaScript module imports can be analyzed by the bundler.
// Dynamically selected application screens may still require runtime logic.

MS Approach

ManySet provides a direct runtime-oriented approach for this recurring business-application task.

// CallTree.json is generated by the MS builder from component inject calls
// under onLoad paths. The runtime reads it before ms.inject/ms.open.
// It is a hidden performance booster, not a developer API.

Why this way is useful in business applications :

The comparison is intended to show where ManySet supplies a business-application abstraction around a recurring task, while keeping HTML and JavaScript visible and directly usable.

Key Point :

ManySet reduces the amount of framework-specific composition required for this particular task, without requiring the React/Angular mechanism to be represented as inherently wrong or incapable.