Webpack Aliases
In this lesson, we will be exploring Webpack aliases.
The module managers we have in the JavaScript community, mainly ES Modules and CommonJS, don’t support project-based paths. They only support relative paths for our own modules and paths for the node_modules
folder. When a project grows a bit, it’s common to see paths such as:
Press + to interact
import SomeComponent from "../../../../components/SomeComponent";
Luckily, we have different ways to cope with this in a way that we can define aliases for folders relative to the project ...
Access this course and 1400+ top-rated courses and projects.