mirror of
https://github.com/TanStack/devtools.git
synced 2026-11-16 10:49:48 +00:00
fix(devtools-bundler-core): skip primitive values when walking AST children (#539)
* fix(devtools-bundler-core): skip primitive values when walking AST children getChildKeys caches the object-valued keys of the first node it sees for a type. A regex Literal has an object `value`, so `value` was cached for every Literal. A later string Literal then reached `'type' in value` with a string, which throws. addSourceToJsx catches the error and returns nothing, so after one regex literal no file got data-tsd-source attributes. forEachChild now skips every non-object value. Fixes #523 * docs(changeset): describe which files lost source injection
This commit is contained in:
parent
df1464cdca
commit
ed8b314173
3 changed files with 35 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue