# vite-plugin-vue-setup-expand

> Extended setup syntax sugar setting

Latest version **0.1.4** (published 2023-02-09) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install vite-plugin-vue-setup-expand
pnpm add vite-plugin-vue-setup-expand
yarn add vite-plugin-vue-setup-expand
bun add vite-plugin-vue-setup-expand
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2023-02-09 |
| First published | 2023-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14 |
| Dependencies | 1 |
| Unpacked size | 47.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | vela37 |
| Maintainers | vela37 |
| Keywords | vite, vue, setup, vite-plugin |

## Links

- npm: https://www.npmjs.com/package/vite-plugin-vue-setup-expand
- Repository: https://github.com/vela666/vite-plugin-vue-setup-expand
- Issues: https://github.com/vela666/vite-plugin-vue-setup-expand/issues
- npm.io page: https://npm.io/package/vite-plugin-vue-setup-expand

## Dependencies (1)

- [@vue/compiler-sfc](https://npm.io/package/@vue/compiler-sfc.md) ^3.2.45

## Recent versions

- 0.1.4 (latest) — 2023-02-09
- 0.1.2 — 2023-02-02
- 0.1.1 — 2023-02-02
- 0.1.0 — 2023-02-02

## README

# vite-plugin-vue-setup-expand

Make setup syntax sugar support names and other attributes

## Install (pnpm or npm or yarn)
```bash
pnpm i vite-plugin-vue-setup-expand
```
## Usage

- Configure in vite.config.js|ts. 
```js
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueSetupExpand from 'vite-plugin-vue-setup-expand'

export default defineConfig({
  plugins: [vue(), vueSetupExpand()],
})
```

- SFC

```vue
<template>
  <div>hello world {{ a }}</div>
</template>

<script setup inheritAttrs lang="ts" name="App" >
  const a = 1
</script>
```
or
```vue
<template>hello world</template>
<script setup inheritAttrs="false" name="LayoutContainer"></script>
```
![Image text](./1.jpg)

## License

MIT

---
_Source: https://npm.io/package/vite-plugin-vue-setup-expand · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
