babel-plugin-vasille 4.1.3 → 4.1.5

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.
Files changed (2) hide show
  1. package/lib/mesh.js +12 -1
  2. package/package.json +1 -1
package/lib/mesh.js CHANGED
@@ -486,7 +486,18 @@ function meshClassBody(path, internal) {
486
486
  meshFunction(item, internal);
487
487
  }
488
488
  else if (item.isClassProperty()) {
489
- meshExpression(item.get("value"), internal);
489
+ const key = item.get("key");
490
+ const value = item.get("value");
491
+ if (value.isCallExpression() && (0, call_js_1.calls)(value, ["ref"], internal)) {
492
+ (0, lib_js_1.checkReactiveName)(key, internal);
493
+ meshAllUnknown(value.get("arguments"), internal);
494
+ }
495
+ else {
496
+ if (key.isIdentifier()) {
497
+ (0, lib_js_1.checkNonReactiveName)(key, internal);
498
+ }
499
+ meshExpression(item.get("value"), internal);
500
+ }
490
501
  }
491
502
  else if (item.isClassAccessorProperty()) {
492
503
  meshExpression(item.get("value"), internal);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-vasille",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "description": "Convert Vasille Meta Language code to pure JavaScript",
5
5
  "main": "lib/index.js",
6
6
  "type": "commonjs",