Skip to Content
微前端设计与实现
book

微前端设计与实现

by Luca Mezzalira
August 2022
Beginner to intermediate
270 pages
7h 38m
Chinese
Posts & Telecom Press
Content preview from 微前端设计与实现
116
5
5.5
 和
webpack
捆绑
我敢打赌,现在有人会认为,因为目前只有
webpack 5
完全支持
Module Federation
,所以
全面使用
Module Federation
可能会有风险
。让我们仔细想一下,自
2020
年秋季发布以来,
Module Federation
在开发社区中收获了大量粉丝
。它拥有平滑的学习曲线,在新项目和存
量项目中实现的便捷性无疑是它的主要优势。此外,它还解决了依赖管理和微前端组合等
复杂问题,这一事实也让其受到了社区的欢迎。
另外,有一个叫作
Fronts
的框架
,用于在不使用
webpack
插件的情况下,基于
Module
Federation
或其有限功能来构建微前端。许多组织开始在生产环境中使用
Module Federation
就像
Angular
前端框架已经开始展示使用
Module Federation
所实现的有趣用例。我们所
担心的问题是,
Module Federation
会严重依赖
webpack
,但这真的是一个问题吗
?如果使
用其他解决方案重构代码需要多长时间?如果不进行重构,你的项目将还能在生产环境中
坚持多久?你正在开发的项目有多重要?在接下来的
3
5
年内
,项目发生技术变化的可
能性有多大?
微前端的优势之一在于增量代码重构。微前端是从业务角度和技术角度改进项目的一个绝
佳解决方案,让你可以尝试新的想法和解决方式,然后逐步改进代码库。当你回避使用那
些存在一定程度的捆绑的框架或技术时,你必须考虑代价。如果决定在内部实现一套方案
来替代由社区维护并迭代的开源方案,那么你要计算开发成本,特别是维护成本 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python语言及其应用(第2版)

Python语言及其应用(第2版)

Bill Lubanovic

Publisher Resources

ISBN: 9787115595089