Member-only story

Everything you need to know about transitive dependencies for packages

Bekhzod Ismoiliy
14 min readAug 23, 2024

--

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?

This is the empty template of the Vite for ReactJS

Let’s try to see the packages.

--

--

Bekhzod Ismoiliy
Bekhzod Ismoiliy

Written by Bekhzod Ismoiliy

I am a highly skilled and dedicated Frontend Web Developer with a passion for creating exceptional user experiences.

No responses yet