Method and device for building micro front-end application
By defining micro-application tags and creating shadow document object models, the problem of selector conflict and DOM structure separation in the micro-frontend framework is solved, and flexible micro-frontend application rendering and efficient communication are achieved.
Patent Information
- Application Number
- CN202110449508.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-25
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2041-04-25
AI Technical Summary
Existing micro front-end frameworks such as single-spa and qiankun have selector conflict problems and the problem of separation of sub-applications and main application DOM structure caused by iframes, and the configuration is complex and not flexible enough.
By defining micro-application tags and creating a shadow document object model, generating micro-application web native components, responding to micro-front-end application construction operations, obtaining static resources of sub-applications and inserting them into the shadow document object model, to introduce sub-applications in the main application.
It solves the problem of selector conflict and DOM structure separation, lowers the configuration threshold, and realizes that a line of code can render micro front-end applications, with high communication efficiency and flexibility.