Commit 0b3b303
committed
fix(transform): check all console.error args in Fragment warning suppression
React 18 calls console.error with a format string and separate arguments
(e.g. console.error('Invalid prop `%s` supplied to `%s`', 'data-ds',
'React.Fragment')), so checking only arguments[0] missed the match.
Join all arguments before checking for 'data-ds' and 'React.Fragment'.1 parent f94d138 commit 0b3b303
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- packages/domscribe-transform/src/plugins
- turbopack
- vite
- webpack
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
0 commit comments