Package Exports
- parcel-transformer-tsc-sourcemaps
- parcel-transformer-tsc-sourcemaps/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (parcel-transformer-tsc-sourcemaps) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
All credits for the code go to @iSplasher
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