While developing an Angular library, I made configurations in the tsconfig.lib.json
file by adding the following setup for paths
:
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
"declaration": true,
"inlineSources": true,
"types": [],
"lib": [
"dom",
"es2018"
],
"paths": {
"@fs/*": ["src/lib/*"]
}
}
However, when trying to import elements like:
import { Test } from '@fs/Test'
The import does not seem to work. Do Angular libraries actually support the usage of the paths
configuration option specified within the tsconfig.lib.json
file?
I typically rely on tools like typescript-transform-paths
to handle path transformations during compilation, and I was wondering if Angular has any built-in solution for this functionality specifically designed for libraries.