babel-plugin-vasille 4.3.0 → 4.3.1
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 -7
- package/package.json +1 -1
package/lib/mesh.js
CHANGED
|
@@ -1040,13 +1040,12 @@ function composeStatement(path, internal) {
|
|
|
1040
1040
|
(0, lib_js_1.checkNonReactiveName)(idPath, internal);
|
|
1041
1041
|
}
|
|
1042
1042
|
// const s = new Set(), const m = new Map()
|
|
1043
|
-
else if (initPath.isNewExpression() &&
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
}
|
|
1043
|
+
else if (initPath.isNewExpression() &&
|
|
1044
|
+
t.isIdentifier(initPath.node.callee) &&
|
|
1045
|
+
["Set", "Map"].includes(initPath.node.callee.name)) {
|
|
1046
|
+
(0, lib_js_1.processModelCall)(initPath, initPath.node.callee.name, kind === "const", internal, idName());
|
|
1047
|
+
meshInit = false;
|
|
1048
|
+
(0, lib_js_1.checkNonReactiveName)(idPath, internal);
|
|
1050
1049
|
}
|
|
1051
1050
|
else if (kind === "let") {
|
|
1052
1051
|
meshExpression(declaration.get("init"), internal);
|