How do you manage vendored or third-party code: submodule, subtree or package manager?
IntermediateProductionMonorepos, large files and repository performance
Answer
A package manager with a lockfile is the default. Submodules suit pinning a source dependency you also develop; subtree suits importing code you want to patch locally, giving contributors zero extra steps. Avoid copying code by hand because provenance is lost.
More on Monorepos, large files and repository performance
What are the main trade-offs of a monorepo?IntermediateHow do you make CI efficient in a monorepo?AdvancedHow do you onboard developers to a very large repo without a 30-minute clone?IntermediateWhat does Scalar do and when do you recommend it?Advanced`git status` takes 20 seconds in a big working tree. How do you fix it?AdvancedWhen should a team adopt Git LFS and when should it avoid it?Intermediate