@iSplasher
All credits for the code go to
This npm package was created based on answer from issue with @parcel/transformer-typescript-tsc
.
Until it's not resolved, this package might be handy. It allows you to see the exact line of error in your sourcemaps.
Usage
- Firstly, install the package:
npm i --save-dev parcel-transformer-tsc-sourcemaps
- Then, in your
.parcelrc
file replace your"@parcel/transformer-typescript-tsc"
with"parcel-transformer-tsc-sourcemaps"
{
"transformers": {
"*.{ts,tsx}": ["parcel-transformer-tsc-sourcemaps"]
}
}
- And that's it! Now parcel will show the exact line in your sourcemap, where the error is