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
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Install:
20
20
npm add @rsbuild/plugin-check-syntax -D
21
21
```
22
22
23
-
Add plugin to your `rsbuild.config.ts`:
23
+
Add plugin to your Rsbuild config:
24
24
25
25
```ts
26
26
// rsbuild.config.ts
@@ -31,6 +31,26 @@ export default {
31
31
};
32
32
```
33
33
34
+
This plugin is compatible with both Rsbuild and Rspack. If you are using Rspack instead of Rsbuild, you can import the `CheckSyntaxRspackPlugin` from the package:
> When using `CheckSyntaxRspackPlugin`, it will not read the browserslist configuration from the project, so you need to specify the [ecmaVersion](#ecmaVersion) or [targets](#targets) option.
53
+
34
54
## Enable Detection
35
55
36
56
After registering the Check Syntax plugin, Rsbuild will perform syntax checking after production builds.
0 commit comments