@farm.js/react 0.1.0-beta.27 → 0.1.0-beta.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vite.mjs CHANGED
@@ -240,6 +240,14 @@ function collectStateDependencies(expression, statesByValue) {
240
240
  return [...dependencies].sort((left, right) => left - right);
241
241
  }
242
242
  function referencesIdentifier(expression, name) {
243
+ let possible = false;
244
+ types.traverseFast(expression, (node) => {
245
+ if ((types.isIdentifier(node) || types.isJSXIdentifier(node)) && node.name === name) {
246
+ possible = true;
247
+ return types.traverseFast.stop;
248
+ }
249
+ });
250
+ if (!possible) return false;
243
251
  let referenced = false;
244
252
  traverse(expressionFile(cloneExpression(expression)), {
245
253
  ReferencedIdentifier(path) {