Get rid of relative import path hell by adding absolute imports to your Typescript project

added by JavaScript Kicks
1/16/2020 12:00:37 PM

553 Views

Typing long and error-prone paths to your Typescript modules can be a frustrating task If you don't know how to set up a TypeScript project, check out this article. Have you ever seen an import statement like this? import { formatName } from '../../helpers/format-name' These inconsistent relative paths look ugly and make code maintenance a nightmare!


0 comments