Closed
Description
💬 RFC Better TypeScript support
TypeScript is working out of the box for the most part but there are a few pain points:
Pain points
- TypeScript module resolution algorithm is not implemented in Parcel. [TypeScript]
baseUrl
inside tsconfig.json not supporting. #202 This covers these configs:baseUrl
paths
allowSyntheticDefaultImports
- Compiler errors are not printed in the console 🐛 Not displaying or honoring Typescript errors #465
parcel-plugin-typescript
adds it but console is not cleared after issue is resolved
Improvements
- Automatically create and configure
tsconfig
- Once a
ts
ortsx
file was imported buttsconfig
is not present, create one
- Once a
- Automatically install
@types
packages Automatically install Typescript types #1161 - Support for Custom Typescript transformers Support for Custom Typescript transformers #699
🔦 Context
TypeScript is pretty popular and having first class support for it in Parcel will attract a wider range of users.
💻 Examples
I tried cloning react-parcel-example and making repo states that demonstrate those pain points:
- JSX is not working in default mode (preserve):
baseUrl
config is not working