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
:functionButton_original(props) { /* original version */ };
95
95
```
96
96
97
-
Note that the gating function is evaluated once at module time, so once the JS bundle has been parsed and evaluated the choice of component stays static for the rest of the browser session.
97
+
Gating 함수는 모듈 시간에 한 번만 평가되므로, JS 번들이 파싱되고 평가된 후에는 선택된 컴포넌트가 브라우저 세션이 끝날 때까지 정적으로 유지됩니다.
98
98
99
99
---
100
100
101
-
## Troubleshooting {/*troubleshooting*/}
101
+
## 문제 해결 {/*troubleshooting*/}
102
102
103
-
### Feature flag not working {/*flag-not-working*/}
103
+
### 기능 플래그가 작동하지 않는 경우 {/*flag-not-working*/}
104
104
105
-
Verify your flag module exports the correct function:
105
+
플래그 모듈이 올바른 함수를 내보내는지 확인하세요.
106
106
107
107
```js
108
-
// ❌ Wrong: Default export
108
+
// ❌ 잘못된 예: Default export
109
109
exportdefaultfunctionshouldUseCompiler() {
110
110
returntrue;
111
111
}
112
112
113
-
// ✅ Correct: Named export matching importSpecifierName
113
+
// ✅ 올바른 예: importSpecifierName과 일치하는 Named export
114
114
exportfunctionshouldUseCompiler() {
115
115
returntrue;
116
116
}
117
117
```
118
118
119
-
### Import errors {/*import-errors*/}
119
+
### Import 오류 {/*import-errors*/}
120
120
121
-
Ensure the source path is correct:
121
+
`source`의 경로가 올바른지 확인하세요.
122
122
123
123
```js
124
-
// ❌ Wrong: Relative to babel.config.js
124
+
// ❌ 잘못된 예: `babel.config.js`에 상대적인 경로
125
125
{
126
126
source:'./src/flags',
127
127
importSpecifierName:'flag'
128
128
}
129
129
130
-
// ✅ Correct: Module resolution path
130
+
// ✅ 올바른 예: 모듈 해석 경로
131
131
{
132
132
source:'@myapp/feature-flags',
133
133
importSpecifierName:'flag'
134
134
}
135
135
136
-
// ✅ Also correct: Absolute path from project root
0 commit comments