Skip to content

Commit f99c558

Browse files
committed
fix for cube-prop
1 parent 4fecc4c commit f99c558

File tree

1 file changed

+10
-0
lines changed
  • rust/cube-prop-ctx-transpiler-swc-plugin/src

1 file changed

+10
-0
lines changed

rust/cube-prop-ctx-transpiler-swc-plugin/src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,16 @@ impl<'a> VisitMut for SqlAndReferencesFieldVisitor<'a> {
323323
self.path_stack.pop();
324324
}
325325
}
326+
327+
fn visit_mut_array_lit(&mut self, arr: &mut ArrayLit) {
328+
for (idx, el) in arr.elems.iter_mut().enumerate() {
329+
if let Some(el) = el {
330+
self.path_stack.push(idx.to_string());
331+
el.visit_mut_children_with(self);
332+
self.path_stack.pop();
333+
}
334+
}
335+
}
326336
}
327337

328338
pub struct KnownIdentifiersInjectVisitor<'a> {

0 commit comments

Comments
 (0)