# vue2-jsx-esbuild

> vue2 jsx for esbuild-loader

Latest version **1.2.1** (published 2022-08-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue2-jsx-esbuild
pnpm add vue2-jsx-esbuild
yarn add vue2-jsx-esbuild
bun add vue2-jsx-esbuild
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2022-08-15 |
| First published | 2022-08-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | aidenhuang |
| Maintainers | aidenhuang |
| Keywords | vue2, jsx, esbuild-loader, esbuild |

## Links

- npm: https://www.npmjs.com/package/vue2-jsx-esbuild
- Repository: https://github.com/Fathands/vue2-jsx-esbuild
- Homepage: https://github.com/Fathands/vue2-jsx-esbuild#readme
- Issues: https://github.com/Fathands/vue2-jsx-esbuild/issues
- npm.io page: https://npm.io/package/vue2-jsx-esbuild

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.2.1 (latest) — 2022-08-15
- 1.2.0 — 2022-08-15
- 1.0.1 — 2022-08-12
- 1.0.0 — 2022-08-12

## README

# vue2-jsx-esbuild

work with vue2-jsx-esbuild， and just for vue2 jsx

## How To Use

at first, you have to use jsx in vue2 and esbuild-loader in webpack


in webpack rules

```javascript
...
module: {
  rules: [
      {
          test: /\.js$/,
          use: {
              loader: 'esbuild-loader',
              options: {
                  loader: 'jsx',
                  jsxFactory: 'vue2JsxEsbuild',
                  target: 'es2015'
              },
          }
      }
  ]
}
...
```

in webpack plugins


```javascript
plugins: [
  new webpack.ProvidePlugin({
      vue2JsxEsbuild: ["vue2-jsx-esbuild", "default"]
  })
]
```

---
_Source: https://npm.io/package/vue2-jsx-esbuild · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
