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: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,6 +148,23 @@ pluginCheckSyntax({
148
148
});
149
149
```
150
150
151
+
### excludeOutput
152
+
153
+
- **Type:** `RegExp | RegExp[]`
154
+
- **Default:** `undefined`
155
+
156
+
`excludeOutput` is used to exclude a portion of output files before detection. You can pass in one or more regular expressions to match the paths of output files. Files that match the regular expression will be ignored and will not trigger syntax checking.
157
+
158
+
- **Example:**
159
+
160
+
For example, to ignore files under the `dist/js` directory:
161
+
162
+
```ts
163
+
pluginCheckSyntax({
164
+
excludeOutput: /dist\/js/,
165
+
});
166
+
```
167
+
151
168
## Limitations
152
169
153
170
1. Check Syntax plugin only checks incompatible syntax in the outputs and cannot detect missing polyfills.
0 commit comments