Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't attempt to change declarationMap sources when no output
- when using rpt2 as a configPlugin, there is no Rollup `output`, so it will be `undefined` - when `declarationMap: true` in `tsconfig`, this block of code is called as a workaround due to the placeholder dir we must use for output -- but, in this case, it errors out, since the `declarationDir` is `undefined` - `path.relative` needs a `string` as a arg, not `undefined` - so skip this transformation entirely when there's no `output`, as it doesn't need to be done in that case anyway - this transformation code happens to have been written by me 2 years ago too, so I had fixed one bug with that but created a different bug 😅 (fortunately one that only I have stumbled upon)
- Loading branch information