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

6.0.1 • Public • Published

Parcel Transformer Ttypescript

Disclaimer: this library is not maintained anymore. If someone wants to take it over, we will be happy to link this repo to the the new repository. We can also hand over the NPM repository.

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 parcel-transformer-ttypescript
  • or NPM: npm install parcel-transformer-ttypescript --save-dev

Then inside the .parcelrc file, reference the transformer:

{
  "extends": "@parcel/config-default",
  "transformers": {
    "*.{ts,tsx}": ["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 @gipphe/parcel-transformer-ttypescript

Weekly Downloads

0

Version

6.0.1

License

Apache-2.0

Unpacked Size

42.4 kB

Total Files

12

Last publish

Collaborators

  • gipphe