I was reading about path-mapping in tsconfig.json
and I wanted to use it to avoid using the following ugly paths:
The project organization is a bit weird because we have a mono-repository that contains projects and libraries. The projects are grouped by company and by browser / server / universal.
How can I configure the paths in tsconfig.json
so instead of:
import { Something } from "../../../../../lib/src/[browser/server/universal]/...";
I can use:
import { Something } from "lib/src/[browser/server/universal]/...";
Will something else be required in the webpack config? or is the tsconfig.json
enough?