With the popularity of single-page application comes a new problem: a modular application needs to be split and merged. The challenges are how to integrate technology-independent applications, how to implement data communication between micro applications, how to manage the resources of the micro application runtime, and how to isolate the micro-applications. On the basis of existing micro-frontend framework, this paper proposes a scheme of componentized micro-frontend architecture base based on Web Components. According to the empirical evaluation, the scheme in this paper solves the above problems and the loading speed of the first screen is faster than that of the Single-spa scheme, and the effectiveness of the solution is verified in actual projects.
|