Add paths
to tsconfig.json
for shorter imports
#2195
Labels
priority-low
Legit issue but cosmetic or nice-to-have
Research Needed
Technical Debt
Includes Architecture, Code, Testing, Automation debt
v3
Is your feature request related to a problem? Please describe.
I was looking at a PR with a long relative path and it had me thinking...
How can we shorten relative imports and make importing more straightforward?
Describe the solution you'd like
We could add
paths
totsconfig.json
and refer to them with a "root" symbol, e.g.@
:(example is from the CLI, but can be applied here)
Which would involve some changes to
tsconfig.json
, e.g.:This might also involve updating the webpack config for module resolution.
Describe alternatives you've considered
Relative imports work just fine, but building these might take time depending on the structure of the modules being imported.
The text was updated successfully, but these errors were encountered: