parcel-transformer-tsc-sourcemaps
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

  1. Firstly, install the package:
npm i --save-dev parcel-transformer-tsc-sourcemaps
  1. Then, in your .parcelrc file replace your "@parcel/transformer-typescript-tsc" with "parcel-transformer-tsc-sourcemaps"
{
	"transformers": {
    	"*.{ts,tsx}": ["parcel-transformer-tsc-sourcemaps"]
  	}
}
  1. And that's it! Now parcel will show the exact line in your sourcemap, where the error is

Package Sidebar

Install

npm i parcel-transformer-tsc-sourcemaps

Weekly Downloads

875

Version

1.0.2

License

none

Unpacked Size

8.64 kB

Total Files

5

Last publish

Collaborators

  • impendingdoom