Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 03b03cf

Browse files
committed
docs: update
1 parent c834119 commit 03b03cf

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default defineConfig({
3939

4040
Example: [`playground/`](./playground/)
4141

42-
</details>
42+
<br></details>
4343

4444
<details>
4545
<summary>Nuxt</summary><br>
@@ -58,9 +58,11 @@ export default {
5858
}
5959
```
6060

61+
> This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)
62+
6163
Example: [`examples/nuxt`](./examples/nuxt)
6264

63-
</details>
65+
<br></details>
6466

6567
<details>
6668
<summary>Webpack</summary><br>
@@ -77,7 +79,7 @@ module.exports = {
7779
}
7880
```
7981

80-
</details>
82+
<br></details>
8183

8284
<details>
8385
<summary>JavaScript API</summary><br>
@@ -96,7 +98,7 @@ const Vue2SFC = transform(`
9698
`)
9799
```
98100

99-
</details>
101+
<br></details>
100102

101103
## IDE
102104

@@ -114,6 +116,10 @@ npm i -D @vue/runtime-dom
114116

115117
If you are using ESLint, you might get `@typescript-eslint/no-unused-vars` warning with `<script setup>`. You can disable it and add `noUnusedLocals: true` in your `tsconfig.json`, Volar will infer the real missing locals correctly for you.
116118

119+
## Recommendations
120+
121+
If you enjoy using `<script setup>`, you might also want to try [`vue-global-api`](https://github.com/antfu/vue-global-api) to improve the DX even further.
122+
117123
## Progress
118124

119125
- [x] PoC
@@ -137,7 +143,7 @@ If you are using ESLint, you might get `@typescript-eslint/no-unused-vars` warni
137143

138144
It's made possible by transforming the `<script setup>` syntax back to normal `<script>` and let the Vue 2 SFC compiler handle the rest.
139145

140-
</details>
146+
<br></details>
141147

142148
## Sponsors
143149

0 commit comments

Comments
 (0)