Parcel: How to package typescript type files?

Created on 23 Jul 2018  ยท  8Comments  ยท  Source: parcel-bundler/parcel

โ” Question


Typescript-based class library, how to package typescript type files

๐Ÿ”ฆ Context


I added the tsconfig.json file, configured the compilation option declaration, but did not generate the type file.

๐Ÿ’ป Code Sample

๐ŸŒ Your Environment

| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.9.7
| Node | 8.9.1
| npm/Yarn | 6.1.0
| Operating System | mac osx

Help Wanted Feature TypeScript

All 8 comments

help?

Use parcel-plugin-typescript, parcel core probably does not support this

@DeMoorJasper

Perhaps you know something about the plans for better support of typescript by parcel?
Are there any plans in this area?

@szagi3891 parcel-plugin-typescript will probably become the core typescript implementation starting parcel 2.0 or maybe even sooner. (depending on what we do once parcel 1.x becomes a monorepo)

@DeMoorJasper
When may parcel 2.0 occur? Is it a matter of months or maybe a year?

There is no set timeline for the release, it's gonna take a little while before it gets released.
Probably months, I don't think it'll take another year

@DeMoorJasper I tried parcel-plugin-typescript, but still didn't generate type files

Duplicate of #1240

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oliger picture oliger  ยท  3Comments

466023746 picture 466023746  ยท  3Comments

algebraic-brain picture algebraic-brain  ยท  3Comments

devongovett picture devongovett  ยท  3Comments

Niggler picture Niggler  ยท  3Comments