TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Micro-front ends in Webpack 5

92 pointsby pastelskyalmost 5 years ago

20 comments

mmmeffalmost 5 years ago
We already kind of solved this problem at IMDb using Webpack 3 and 4 (with tons of hackery). It was, all things considered, a terrible idea.<p>We ended up with a web page with 10 nearly identical sections implemented 10 different ways by 10 different developers across 10 different git repositories.<p>Micro-frontends are cancer, please don&#x27;t fall for it. You can get much more done for less with a single webserver and a graphQL service, not matter your project&#x27;s scope.<p>No front-end on earth needs multiple teams to build it - if it does, your product is convoluted and needs to be split up and&#x2F;or simplified.
评论 #23569474 未加载
评论 #23567730 未加载
评论 #23567809 未加载
评论 #23567606 未加载
评论 #23573705 未加载
评论 #23571916 未加载
logicalmonsteralmost 5 years ago
Maybe this is good and useful for some people: but to me it feels like a continuation of the dark slide that frontend tooling is going on. Way overcomplicated, likely brittle and buggy, significant barriers to just sitting down and building stuff.
评论 #23566440 未加载
评论 #23566381 未加载
评论 #23566352 未加载
评论 #23572294 未加载
bob1029almost 5 years ago
This is basically micro-services ideology but applied to the front-end. To me, all of this reads as:<p>&quot;We couldn&#x27;t agree on a programming language, framework, or set of common development practices, so everyone gets their own individual silo and never has to worry about what everyone else is doing.&quot;<p>Does anyone pay attention to the organizational problem that underlies all of this? You have to agree as a team on this stuff. Microservices is not a way to solve a technical problem, but a way to bandaid an organizational&#x2F;people problem. You simply couldn&#x27;t get 2 different front-end or back-end teams to agree on some policy or framework, so now you put an explicit rift between them with this microservice bs.<p>We did monolith-&gt;micro-services-&gt;monolith. I will rewrite a system from scratch before i put it into a leaky box and try to wrap an API around it ever again. You can try to sell this as some sort of way to migrate away from legacy without rewriting code but that is a bullshit siren song that is never true in any reality. You will likely save more time over the long haul building 1 coherent system (both frontend and backend). Keeping legacy around and pushing it further and further into container inception is not a rational technical solution if you actually want to pay down your technical debt at any point.
BossingAroundalmost 5 years ago
Honestly, that looks like the most horrifying piece of tech that I really wanna learn and try...<p>In my org, most teams that need it have like one front end dev that&#x27;s shared among three other teams, and like one or two people who can hammer out some React and don&#x27;t hate JS to help out with most of the stuff. I suspect this would be an utter madness for that kind of a team.<p>And yet I feel like I wanna try that for our next project.
评论 #23566501 未加载
Vinnlalmost 5 years ago
The goal of micro-frontends (different teams being able to deploy &quot;their&quot; parts of an application) is nice and all, but I still don&#x27;t see how this is going to work when the shared modules release breaking changes. So now all those different teams that work on different parts of the same applications will still need to do one massively coordinated release in which they all migrate to the newer version at the same time, and a single team delaying things can put the work of all other teams on hold.
评论 #23567671 未加载
评论 #23566584 未加载
评论 #23567169 未加载
评论 #23570555 未加载
mrsharpobluntoalmost 5 years ago
Can we please stop overcomplicating the terminology around frontend architecture? The whole Isomorphism craze was bad enough - lets not make this stuff more complex than it needs to be and create confusion by over-loading existing terms like containers.<p>Whats being proposed here are dynamically linked shared libraries, they expose some functionality &amp; also consume dependencies (that may be shared). Theres no need to be talking about containers, federation, orchestration etc...
tobralmost 5 years ago
Of all the possible ways to write it, “Micro-front ends” definitely isn’t the right one. I thought it was about Webpack 5 dropping support for something.
评论 #23566141 未加载
评论 #23566119 未加载
JMTQp8lwXLalmost 5 years ago
I opened a PR to upgrade my project to webpack 5 in 2019. Still haven&#x27;t merged it since Webpack 5 still isn&#x27;t released. If they have no further breaking changes, they ought to release and do a 5.1 with further non-breaking new functionality.
ironmagmaalmost 5 years ago
The Webpack dev team&#x27;s time would be much better spent on making their code strongly typed, with configuration especially having a strong type definition. We need less Webpack to deal with, not more.
radoalmost 5 years ago
A poorly organised company will always be a poorly organised company regardless of the tools it uses.
liminalalmost 5 years ago
This seems like something useful that I hope to never have to debug
bauerdalmost 5 years ago
So this is like Server Side Includes (SSI) but with shared state and built on top of JS modules?
评论 #23567503 未加载
denysoniquealmost 5 years ago
Does it finally work magically out of the box like Parcel does?
评论 #23566224 未加载
kentaadcalmost 5 years ago
Please change my mind: I think that sharing modules on the run is not related on microfrontends. Actually what you can achieve with module federation it&#x27;s achievable with npm modules. The main difference is that are accessible at run time and that them are sharing common dependencies. But it would be a hell to handle deployment and breaking changes.
nealsalmost 5 years ago
Like &lt;Frame&#x2F;&gt; but better!
i_like_robotsalmost 5 years ago
I&#x27;m hoping that module federation will enable multiple, separately deployed services to reuse assets so that users moving between those services may do so without redownloading the same things over and over.<p>We&#x27;ve been able to achieve this to good effect using Webpack 4 with some hackery (<a href="https:&#x2F;&#x2F;www.matthinchliffe.dev&#x2F;2020&#x2F;06&#x2F;03&#x2F;taming-webpacks-content-hashes.html" rel="nofollow">https:&#x2F;&#x2F;www.matthinchliffe.dev&#x2F;2020&#x2F;06&#x2F;03&#x2F;taming-webpacks-co...</a>) but I&#x27;d love to be able to point to something documented and official instead... this sort of looks like it might meet this need. Fingers crossed.
globular-toastalmost 5 years ago
This title was quite hard for me to parse. I was thinking, what is Micro-front and why is it ending?
greenie_beansalmost 5 years ago
Micro-front ends sound like a bad idea, and exactly like the sort of thing our architects would think is a good idea. Does anybody know of any horror story blog posts so I can show my manager, just in case?
ryanmarshalmost 5 years ago
Nice. Now all the clients pretending to develop microfrontends (by breaking up the repos) but shipping one big js bundle can stop fucking lying now.
KayLalmost 5 years ago
what software used to create the diagrams in the article?
评论 #23565984 未加载