Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fathyb/parcel-plugin-typescript
🚨 Enhanced TypeScript support for Parcel
https://github.com/fathyb/parcel-plugin-typescript
code-quality lint parcel-plugin transformers type-checker typescript
Last synced: 18 days ago
JSON representation
🚨 Enhanced TypeScript support for Parcel
- Host: GitHub
- URL: https://github.com/fathyb/parcel-plugin-typescript
- Owner: fathyb
- License: mit
- Created: 2017-12-09T18:00:00.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2022-12-07T17:20:20.000Z (about 2 years ago)
- Last Synced: 2024-11-09T20:00:23.081Z (about 1 month ago)
- Topics: code-quality, lint, parcel-plugin, transformers, type-checker, typescript
- Language: TypeScript
- Homepage:
- Size: 1.26 MB
- Stars: 180
- Watchers: 7
- Forks: 18
- Open Issues: 52
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome - parcel-plugin-typescript - 🚨 Enhanced TypeScript support for Parcel (TypeScript)
- awesome-ccamel - fathyb/parcel-plugin-typescript - 🚨 Enhanced TypeScript support for Parcel (TypeScript)
- awesome-parcel - TypeScript - Enhanced TypeScript integration. (Plugins / JavaScript dialects, other languages)
README
# parcel-plugin-typescript
Enhanced TypeScript integration for Parcel.
![Screenshot](./.assets/screenshot.png)
## Differences with Parcel native support
While Parcel has built-in transpiling support for TypeScript, this plugin provides [additional features](#features).
If you only need transpiling then this plugin might not be necessary. You can see this plugin as a Parcel version of `awesome-typescript-loader` or `ts-loader`.
## Features
- Type checking:
Checking your TypeScript code for errors, in a separate process for speed.
- Path mappings:
Rewriting your `import` on the fly accordingly to your `paths` and `baseUrl` compiler options.
- Custom AST transformers:
Use your own TypeScript transformers### Upcoming features
- TSLint support
### Angular Support
Angular support has been moved to [`parcel-plugin-angular`](https://github.com/fathyb/parcel-plugin-angular).
## Installation
`yarn add parcel-plugin-typescript`
or
`npm install parcel-plugin-typescript`
## Configuration
For configuration, you can pass a `parcel-plugin-typescript` object in your `tsconfig.json`:
```js
{
"compilerOptions": {...},
// the plugin options
"parcel-plugin-typescript": {
// If true type-checking is disabled
"transpileOnly": false
}
}
```