You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/en/guide/setup.md
+116-1Lines changed: 116 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,12 +132,127 @@ You can check the [**CookBook**](/cookbook/components) section to get some TypeS
132
132
> Enables TypeScript type checking on a separate process.
133
133
134
134
- Type: `Boolean` or `Object`
135
-
- Default: `true`
135
+
- Default:
136
+
```ts
137
+
{
138
+
typescript: {
139
+
configFile: '~~/tsconfig.json',
140
+
extensions: {
141
+
vue: true
142
+
}
143
+
},
144
+
logger: {
145
+
issues: loggerInterface
146
+
}
147
+
}
148
+
```
136
149
137
150
When enabled, Nuxt.js uses [fork-ts-checker-webpack-plugin](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin) to provide type checking.
138
151
152
+
<alerttype="warning">
153
+
154
+
Note that `script setup` is not supported by this webpack plugin so you won't get any type errors when using it. In that case it might be better to disable the `typecheck` option and rely on external type checking through [`vue-tsc`](https://www.npmjs.com/package/vue-tsc), for example.
155
+
156
+
</alert>
157
+
139
158
You can use an `Object` to override plugin options or set it to `false` to disable it.
140
159
160
+
When passing a custom object, the passed values are merged with default values.
161
+
162
+
These are all the options supported by `fork-ts-checker-webpack-plugin`:
0 commit comments