cevek / ttypescript

Over TypeScript tool to use custom transformers in the tsconfig.json
1.53k stars 56 forks source link

parcel-plugin-ttypescript Is the module outdated? #129

Open khusamov opened 2 years ago

mmcgahan commented 2 years ago

It looks like the current parcel plugin (https://github.com/cevek/ttypescript/blob/master/packages/parcel-plugin/TTypescriptAsset.js) was last updated a few years ago and is designed for Parcel version 1.

Parcel version 2 has made some major changes to its transformer plugin interface, and it would be great to be able to use ttypescript with it.

I might be able to try putting together a PR for this sometime in the next few weeks, but not sure - I'm eager to improve the react-intl bundling in my app without having to fall back on webpack + ts-loader or babel.

Gurimarukin commented 1 year ago

I made something work for me with a link:./parcel-transformer-ttsc in my package.json, and a copypasta of https://github.com/parcel-bundler/parcel/tree/v2/packages/transformers/typescript-tsc with replacing typescript with ttypescript.