ripple 0.2.39 → 0.2.40

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ripple is a TypeScript UI framework for the web",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.2.39",
6
+ "version": "0.2.40",
7
7
  "type": "module",
8
8
  "module": "src/runtime/index.js",
9
9
  "main": "src/runtime/index.js",
@@ -431,6 +431,10 @@ const visitors = {
431
431
  },
432
432
 
433
433
  ForOfStatement(node, context) {
434
+ if (!is_inside_component(context)) {
435
+ return context.next();
436
+ }
437
+
434
438
  node.metadata = {
435
439
  has_template: false,
436
440
  };