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
React Compiler accepts various [configuration options](/reference/react-compiler/configuration) to control its behavior. This rule validates that your configuration uses correct option names and value types, preventing silent failures from typos or incorrect settings.
13
+
React 컴파일러는 동작을 제어하기 위해 다양한 [설정 옵션](/reference/react-compiler/configuration)을 받습니다. 이 규칙은 설정이 올바른 옵션 이름과 값 타입을 사용하는지 검증하여 오타나 잘못된 설정으로 인한 무시되는 오류를 방지합니다.
14
14
15
-
### Invalid {/*invalid*/}
15
+
### 잘못된 예 {/*invalid*/}
16
16
17
-
Examples of incorrect code for this rule:
17
+
이 규칙에 대한 잘못된 코드 예시입니다.
18
18
19
19
```js
20
-
// ❌ Unknown option name
20
+
// ❌ 알 수 없는 옵션 이름
21
21
module.exports= {
22
22
plugins: [
23
23
['babel-plugin-react-compiler', {
24
-
compileMode:'all'//Typo: should be compilationMode
24
+
compileMode:'all'//오타: compilationMode여야 함
25
25
}]
26
26
]
27
27
};
28
28
29
-
// ❌ Invalid option value
29
+
// ❌ 유효하지 않은 옵션 값
30
30
module.exports= {
31
31
plugins: [
32
32
['babel-plugin-react-compiler', {
33
-
compilationMode:'everything'//Invalid: use 'all' or 'infer'
33
+
compilationMode:'everything'//유효하지 않음: 'all' 또는 'infer'를 사용하세요
34
34
}]
35
35
]
36
36
};
37
37
```
38
38
39
-
### Valid {/*valid*/}
39
+
### 올바른 예 {/*valid*/}
40
40
41
-
Examples of correct code for this rule:
41
+
이 규칙에 대한 올바른 코드 예시입니다.
42
42
43
43
```js
44
-
// ✅ Valid compiler configuration
44
+
// ✅ 유효한 컴파일러 설정
45
45
module.exports= {
46
46
plugins: [
47
47
['babel-plugin-react-compiler', {
@@ -52,38 +52,38 @@ module.exports = {
52
52
};
53
53
```
54
54
55
-
## Troubleshooting {/*troubleshooting*/}
55
+
## 문제 해결 {/*troubleshooting*/}
56
56
57
-
### Configuration not working as expected {/*config-not-working*/}
57
+
### 설정이 예상대로 작동하지 않는 경우 {/*config-not-working*/}
58
58
59
-
Your compiler configuration might have typos or incorrect values:
59
+
컴파일러 설정에 오타나 잘못된 값이 있을 수 있습니다.
60
60
61
61
```js
62
-
// ❌ Wrong: Common configuration mistakes
62
+
// ❌ 잘못된 예: 일반적인 설정 실수
63
63
module.exports= {
64
64
plugins: [
65
65
['babel-plugin-react-compiler', {
66
-
//Typo in option name
66
+
//옵션 이름 오타
67
67
compilationMod:'all',
68
-
//Wrong value type
68
+
//잘못된 값 타입
69
69
panicThreshold:true,
70
-
//Unknown option
70
+
//알 수 없는 옵션
71
71
optimizationLevel:'max'
72
72
}]
73
73
]
74
74
};
75
75
```
76
76
77
-
Check the [configuration documentation](/reference/react-compiler/configuration) for valid options:
0 commit comments