@vgerbot/parcel-transformer-ttypescript
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@vgerbot/parcel-transformer-ttypescript


A replacement of the standard Parcel v2 transformer Typescript to use ttypescript. This enables to use easily custom TypeScript transformers inside Parcel 2 projects.

Usage


Install the dependency:

  • Yarn:yarn add -D @vgerbot/parcel-transformer-ttypescript
  • or NPM: npm install @vgerbot/parcel-transformer-ttypescript --save-dev

Then inside the .parcelrc file, reference the transformer:

{
  "extends": "@parcel/config-default",
  "transformers": {
    "*.{ts,tsx}": ["@vgerbot/parcel-transformer-ttypescript"]
  }
}

In the tsconfig.json, reference your TypeScript transformers:

{
  "compilerOptions": {
    "plugins": [
      {"transform": "./build-scripts/di-transformer-adapter.ts" },
      {"transform": "ts-transformer-classname" }
    ]
  }
}

Package Sidebar

Install

npm i @vgerbot/parcel-transformer-ttypescript

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

12 kB

Total Files

8

Last publish

Collaborators

  • y1j2x34