# @webpackon/use-ts

> Webpackon use typescript

Latest version **1.0.1** (published 2022-11-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @webpackon/use-ts
pnpm add @webpackon/use-ts
yarn add @webpackon/use-ts
bun add @webpackon/use-ts
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-11-01 |
| First published | 2021-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | AndTem |
| Maintainers | and_tem |
| Keywords | webpackon, webpack, webpack 5, webpack config, webpack-config, use ts, use typescript, webpackon ts |

## Links

- npm: https://www.npmjs.com/package/@webpackon/use-ts
- Repository: https://github.com/AndTem/webpackon
- Homepage: https://github.com/AndTem/webpackon/tree/master/packages/typescript#Readme
- Issues: https://github.com/AndTem/webpackon/issues
- npm.io page: https://npm.io/package/@webpackon/use-ts

## Dependencies (2)

- [@webpackon/core](https://npm.io/package/@webpackon/core.md) ^1.1.6
- [tsconfig-paths-webpack-plugin](https://npm.io/package/tsconfig-paths-webpack-plugin.md) 3.5.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-11-01
- 1.0.0 — 2021-12-08

## README

<p align="center">
  <img src='https://raw.githubusercontent.com/AndTem/webpackon/master/images/logo.svg' height='120' width='120'>
</p>
<p align="center">
  <a href="https://github.com/AndTem/webpackon#readme">Webpackon</a>
</p>

# @webpackon/use-ts

Features:
- synchronization tsconfig paths with webpack aliases
- adds typescript extensions

## Install
```shell
npm i @webpackon/use-ts --save
```

```shell
yarn add @webpackon/use-ts
```

## API

```ts
const { useTs } = require('@webpackon/use-ts');

useTs()(config: WebpackConfig)
```

## Examples
Full examples are [here](https://github.com/AndTem/webpackon/tree/master/examples)

### Example babel + ts
```js
const path = require('path');

const { compose } = require('@webpackon/core');
const { useTs } = require('@webpackon/use-ts');
const { useBabel } = require('@webpackon/use-babel');

module.exports = (_, { mode }) =>
  compose(
    useBabel({ useTs: true }),
    useTs(),
  )({
    target: 'web',
    entry: path.resolve(__dirname, 'src', 'index.tsx'),
  });
```

### Example swc + ts
```js
const path = require('path');

const { compose } = require('@webpackon/core');
const { useTs } = require('@webpackon/use-ts');
const { useSwc } = require('@webpackon/use-swc');

module.exports = (_, { mode }) =>
  compose(
    useSwc({ useTs: true }),
    useTs(),
  )({
    target: 'web',
    entry: path.resolve(__dirname, 'src', 'index.tsx'),
  });
```

---
_Source: https://npm.io/package/@webpackon/use-ts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
