@hqjs/babel-plugin-transform-typescript
Version:
Original babel plugin fork that supports parameters decorators and dependency injection
10 lines (7 loc) • 835 B
Markdown
[](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-typescript) fork that allows to work with parameter decorators and dependency injection
The plugin is in sync with version `7.12.1` of official plugin, the difference is that Program transformation is done on exit rather then on enter (due to that `jsxPragma` check is done differently as on program exit there is no JSX left when `react` preset is being used), that allows to apply additional transformations to import statements. Plugin has extra option `removeUnusedImports` default to true. When the option is set to false, plugin does not try to remove unused imports that could be suitable for preprocessing templates like `svelte`.
# Installation
```sh
npm install hqjs@babel-plugin-transform-typescript
```