Member-only story
Everything you need to know about transitive dependencies for packages
Here are descriptions of how to use packages properly in the world of dependencies.
Let’s begin with a simple understanding of what dependency is.
The dependency is a library that will be embedded into your project as util. In other words, dependency is like the build of the codebase which was made by one developer that will help developers create with ease and fast new projects using this dependency.
So what is about transitive dependencies?
The transitive dependency is a dependency in the other dependency that will be embedded in your project.
For better understanding, the example will use the NodeJS ecosystem with the yarn package manager.
Let’s create the empty project via the template ReactJS of Vite.
yarn create vite transitive-dependencies - template react
What will be created from this template?
Let’s try to see the packages.