Closed
Description
When applying a path alias to a typescript project, the path is resolved in the emitted javascript files, but not in the declaration files.
Versions
- typescript: 3.7.4
- rollup: 1.27.14
- rollup-plugin-typescript2: 0.25.3
In the following project I have aliased ~/*
to ./src/*
. Allowing for imports using absolute paths from the base directory.
https://github.com/alshdavid-sandbox/rollup-typescript-library
npm install && make
cat dist/a/index.d.ts | grep "~"
cat
should print nothing, however it currently prints
import { B } from '~/b';
This illustrates that we are not applying path resolution to the declaration files.