babel-plugin-vasille 4.1.2 → 4.1.3
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 +6 -2
- package/package.json +1 -1
package/lib/mesh.js
CHANGED
|
@@ -1033,8 +1033,12 @@ function composeStatement(path, internal) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
else if (kind === "let") {
|
|
1035
1035
|
meshExpression(declaration.get("init"), internal);
|
|
1036
|
-
|
|
1037
|
-
|
|
1036
|
+
if (idPath.isIdentifier() && idPath.node.name.startsWith("$")) {
|
|
1037
|
+
declaration.get("init").replaceWith((0, lib_js_1.ref)(declaration.node.init, internal, idName()));
|
|
1038
|
+
}
|
|
1039
|
+
else {
|
|
1040
|
+
switchToConst = false;
|
|
1041
|
+
}
|
|
1038
1042
|
meshInit = false;
|
|
1039
1043
|
}
|
|
1040
1044
|
else {
|