File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,4 @@ import { pluginReact } from '@rsbuild/plugin-react';
3
3
4
4
export default defineConfig ( {
5
5
plugins : [ pluginReact ( ) ] ,
6
- dev : {
7
- client : {
8
- overlay : true
9
- }
10
- }
11
6
} ) ;
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ const getDefaultDevConfig = (): NormalizedDevConfig => ({
40
40
liveReload : true ,
41
41
assetPrefix : DEFAULT_ASSET_PREFIX ,
42
42
startUrl : false ,
43
+ client : {
44
+ overlay : true ,
45
+ } ,
43
46
} ) ;
44
47
45
48
const getDefaultServerConfig = ( ) : NormalizedServerConfig => ( {
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ type Client = {
16
16
host? : string ;
17
17
/**
18
18
* Shows overlay in the browser when there are compiler errors
19
- *
20
19
* This feature requires the current browser version to support [Web Components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components)
21
20
*/
22
21
overlay? : boolean ;
@@ -32,7 +31,7 @@ const defaultConfig = {
32
31
port: ' ' ,
33
32
host: location .hostname ,
34
33
protocol: location .protocol === ' https:' ? ' wss' : ' ws' ,
35
- overlay: false ,
34
+ overlay: true ,
36
35
};
37
36
```
38
37
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ type Client = {
16
16
host? : string ;
17
17
/**
18
18
* 当出现编译错误时,在浏览器中显示遮盖
19
- *
20
19
* 该功能需要当前浏览器版本支持 [Web Components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components)
21
20
*/
22
21
overlay? : boolean ;
@@ -32,7 +31,7 @@ const defaultConfig = {
32
31
port: ' ' ,
33
32
host: location .hostname ,
34
33
protocol: location .protocol === ' https:' ? ' wss' : ' ws' ,
35
- overlay: false ,
34
+ overlay: true ,
36
35
};
37
36
```
38
37
You can’t perform that action at this time.
0 commit comments