@esportsplus/reactivity 0.29.15 → 0.29.17

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.
@@ -43,6 +43,14 @@ function visit(ctx, node) {
43
43
  if (ts.isArrayLiteralExpression(unwrapped) || ts.isObjectLiteralExpression(unwrapped)) {
44
44
  classification = null;
45
45
  }
46
+ else if (ts.isCallExpression(unwrapped) || ts.isIdentifier(unwrapped)) {
47
+ ctx.replacements.push({
48
+ generate: () => `${NAMESPACE}.reactive`,
49
+ node: call.expression
50
+ });
51
+ ts.forEachChild(node, n => visit(ctx, n));
52
+ return;
53
+ }
46
54
  }
47
55
  if (classification) {
48
56
  let varname = null;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "@esportsplus/utilities": "^0.27.2"
5
5
  },
6
6
  "devDependencies": {
7
- "@esportsplus/typescript": "^0.27.4",
7
+ "@esportsplus/typescript": "^0.27.5",
8
8
  "@types/node": "^25.0.3",
9
9
  "vite": "^7.3.1"
10
10
  },
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "type": "module",
37
37
  "types": "build/index.d.ts",
38
- "version": "0.29.15",
38
+ "version": "0.29.17",
39
39
  "scripts": {
40
40
  "build": "tsc",
41
41
  "build:test": "pnpm build && vite build --config test/vite.config.ts",
@@ -74,6 +74,15 @@ function visit(ctx: TransformContext, node: ts.Node): void {
74
74
  if (ts.isArrayLiteralExpression(unwrapped) || ts.isObjectLiteralExpression(unwrapped)) {
75
75
  classification = null;
76
76
  }
77
+ // Dynamic expression - use runtime reactive via namespace
78
+ else if (ts.isCallExpression(unwrapped) || ts.isIdentifier(unwrapped)) {
79
+ ctx.replacements.push({
80
+ generate: () => `${NAMESPACE}.reactive`,
81
+ node: call.expression
82
+ });
83
+ ts.forEachChild(node, n => visit(ctx, n));
84
+ return;
85
+ }
77
86
  }
78
87
 
79
88
  if (classification) {