r/javascript • • Jan 03 '20

[deleted by user]

[removed]

88 Upvotes

34 comments sorted by

View all comments

Show parent comment

1

u/ShakeNBake16 Jan 05 '20

Bundle sizes im not sure about. We have a great architecture team that handles a lot of that. There is a lot of work around putting it all together, but lazy loading + caching helps a lot. So once you visit a react 16.1 page it is never downloaded again.

Where I work now, we're actually leveraging web components to provide common inputs, and they work across frameworks. We also have a common shared stylesheet everyone uses. There's not a programmatic way I've found to ensure design language standards, but every microapp we have is subject to scrutiny by UX and they can halt a release. Plus the shell we use to load everything can only be changed by a select few people. So rogue apps can't be deployed.

As far as sharing code, I haven't seen much use for sharing across applications. Mostly because our microapp boundaries are radically different. We do have a shared library that gets published to an internal npm registry. And some of our architects will peruse codebases from time to time and look for common patterns.

It's not a silver bullet, but we have 20+ teams working on a single app and it beats the hell out of what we were doing. It's also a decent amount of work to get setup, but being able to push out changes whenever we want, having really fast build times and being able to leverage TDD is pretty awesome!