+72
-133
lines changedFilter options
+72
-133
lines changed Original file line number Diff line number Diff line change
@@ -61,8 +61,7 @@ defineProps<{
61
61
62
62
## Volar Configuration
63
63
64
-
```jsonc {4,6}
65
-
// tsconfig.json
64
+
```jsonc {3,5} [tsconfig.json]
66
65
{
67
66
"vueCompilerOptions": {
68
67
"plugins": ["unplugin-vue-macros/volar"],
Original file line number Diff line number Diff line change
@@ -217,8 +217,7 @@ export default a
217
217
218
218
## Volar Configuration
219
219
220
-
```jsonc {4,6}
221
-
// tsconfig.json
220
+
```jsonc {3,5} [tsconfig.json]
222
221
{
223
222
"vueCompilerOptions": {
224
223
"plugins": ["unplugin-vue-macros/volar"],
Original file line number Diff line number Diff line change
@@ -30,8 +30,7 @@ export const bar: number = 1 // with default value
30
30
31
31
## Volar Configuration
32
32
33
-
```jsonc {4,6}
34
-
// tsconfig.json
33
+
```jsonc {3,5} [tsconfig.json]
35
34
{
36
35
"vueCompilerOptions": {
37
36
"plugins": ["unplugin-vue-macros/volar"],
Original file line number Diff line number Diff line change
@@ -31,8 +31,7 @@ export default () => <div>ok</div>
31
31
32
32
## Volar Configuration
33
33
34
-
```jsonc {4,8}
35
-
// tsconfig.json
34
+
```jsonc {3,7} [tsconfig.json]
36
35
{
37
36
"vueCompilerOptions": {
38
37
"plugins": ["unplugin-vue-macros/volar"],
Original file line number Diff line number Diff line change
@@ -213,8 +213,7 @@ Modifiers are special postfixes denoted by a `_`, which indicate that a directiv
213
213
214
214
## Volar Configuration
215
215
216
-
```jsonc {4}
217
-
// tsconfig.json
216
+
```jsonc {3} [tsconfig.json]
218
217
{
219
218
"vueCompilerOptions": {
220
219
"plugins": ["unplugin-vue-macros/volar"],
Original file line number Diff line number Diff line change
@@ -72,8 +72,7 @@ module.exports = {
72
72
73
73
### TypeScript Support
74
74
75
-
```json
76
-
// tsconfig.json
75
+
```json [tsconfig.json]
77
76
{
78
77
"compilerOptions": {
79
78
// ...
@@ -386,7 +385,7 @@ This also means the macros can work in any files where valid JS / TS are allowed
386
385
387
386
Since the macros are available globally, their types need to be explicitly referenced (e.g. in a `env.d.ts` file):
388
387
389
-
```ts
388
+
```ts [env.d.ts]
390
389
/// <reference types="unplugin-vue-macros/macros-global" />
391
390
392
391
// or for standalone version:
Original file line number Diff line number Diff line change
@@ -38,8 +38,7 @@ defineProps<{
38
38
39
39
## Volar Configuration
40
40
41
-
```jsonc {4,6-8}
42
-
// tsconfig.json
41
+
```jsonc {3,5-7} [tsconfig.json]
43
42
{
44
43
"vueCompilerOptions": {
45
44
"plugins": ["unplugin-vue-macros/volar"],
Original file line number Diff line number Diff line change
@@ -45,8 +45,7 @@ const value = 'foo'
45
45
46
46
## Volar Configuration
47
47
48
-
```jsonc {4}
49
-
// tsconfig.json
48
+
```jsonc {3} [tsconfig.json]
50
49
{
51
50
"vueCompilerOptions": {
52
51
"plugins": ["unplugin-vue-macros/volar"],
Original file line number Diff line number Diff line change
@@ -20,8 +20,7 @@ pnpm add -D @vue-macros/astro
20
20
21
21
## Configuration
22
22
23
-
```ts
24
-
// astro.config.mjs
23
+
```ts [astro.config.mjs]
25
24
import Vue from '@astrojs/vue'
26
25
import Macros from '@vue-macros/astro'
27
26
import { defineConfig } from 'astro/config'
Original file line number Diff line number Diff line change
@@ -157,9 +157,7 @@ module.exports = defineConfig({
157
157
158
158
See the [Configurations](./configurations.md) for more details.
159
159
160
-
```ts twoslash
161
-
// vue-macros.config.ts
162
-
160
+
```ts twoslash [vue-macros.config.ts]
163
161
import { defineConfig } from 'unplugin-vue-macros'
164
162
export default defineConfig({
165
163
// options
@@ -196,8 +194,7 @@ export default defineConfig({
196
194
197
195
For detailed configuration, please refer to the description of the specific macro.
198
196
199
-
```jsonc
200
-
// tsconfig.json
197
+
```jsonc [tsconfig.json]
201
198
{
202
199
"vueCompilerOptions": {
203
200
"plugins": ["unplugin-vue-macros/volar"],
@@ -210,9 +207,7 @@ For detailed configuration, please refer to the description of the specific macr
210
207
`exportExpose`, `exportProps`, and `exportRender` plugins cannot be used
211
208
at the same time unless providing a scope.
212
209
213
-
```ts twoslash
214
-
// vue-macros.config.ts
215
-
210
+
```ts twoslash [vue-macros.config.ts]
216
211
import { defineConfig } from 'unplugin-vue-macros'
217
212
export default defineConfig({
218
213
exportExpose: {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4