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
{{ message }}
Repository navigation
Commit 1c11d71
Browse filesBrowse the repository at this point in the historyBrowse files
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.
96
+
Note que a função de gating é avaliada uma vez no momento da carga do módulo. Assim, uma vez que o bundle JS tenha sido analisado e avaliado, a escolha do componente permanece estática pelo resto da sessão do navegador.
98
97
99
98
---
100
99
101
-
## Troubleshooting {/*troubleshooting*/}
100
+
## Solução de problemas {/*troubleshooting*/}
102
101
103
-
### Feature flag not working {/*flag-not-working*/}
102
+
### Feature flag não funcionando {/*flag-not-working*/}
104
103
105
-
Verify your flag module exports the correct function:
104
+
Verifique se o seu módulo de flag exporta a função correta:
106
105
107
106
```js
108
-
// ❌ Wrong: Default export
107
+
// ❌ Errado: Exportação padrão
109
108
exportdefaultfunctionshouldUseCompiler() {
110
109
returntrue;
111
110
}
112
111
113
-
// ✅ Correct: Named export matching importSpecifierName
112
+
// ✅ Correto: Exportação nomeada correspondendo a importSpecifierName
114
113
exportfunctionshouldUseCompiler() {
115
114
returntrue;
116
115
}
117
116
```
118
117
119
-
### Import errors {/*import-errors*/}
118
+
### Erros de importação {/*import-errors*/}
120
119
121
-
Ensure the source path is correct:
120
+
Certifique-se de que o caminho da origem está correto:
122
121
123
122
```js
124
-
// ❌ Wrong: Relative to babel.config.js
123
+
// ❌ Errado: Relativo a babel.config.js
125
124
{
126
125
source:'./src/flags',
127
126
importSpecifierName:'flag'
128
127
}
129
128
130
-
// ✅ Correct: Module resolution path
129
+
// ✅ Correto: Caminho de resolução do módulo
131
130
{
132
131
source:'@myapp/feature-flags',
133
132
importSpecifierName:'flag'
134
133
}
135
134
136
-
// ✅ Also correct: Absolute path from project root
135
+
// ✅ Também correto: Caminho absoluto a partir da raiz do projeto
0 commit comments