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.
- package/lib/mesh.js +12 -1
- 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
|
-
|
|
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);
|