@geajs/vite-plugin 1.0.22 → 1.0.24
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/dist/index.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4706,6 +4706,7 @@ function expressionContainsJSX(expr) {
|
|
|
4706
4706
|
return found;
|
|
4707
4707
|
}
|
|
4708
4708
|
function isChildrenPropAccess(expr) {
|
|
4709
|
+
if (t10.isIdentifier(expr) && expr.name === "children") return true;
|
|
4709
4710
|
if (t10.isMemberExpression(expr) && t10.isIdentifier(expr.property) && expr.property.name === "children" && t10.isIdentifier(expr.object) && expr.object.name === "props")
|
|
4710
4711
|
return true;
|
|
4711
4712
|
if (t10.isMemberExpression(expr) && t10.isIdentifier(expr.property) && expr.property.name === "children" && t10.isMemberExpression(expr.object) && t10.isThisExpression(expr.object.object) && t10.isIdentifier(expr.object.property) && expr.object.property.name === "props")
|
|
@@ -12343,7 +12344,10 @@ function applyStaticReactivity(ast, originalAST, className, sourceFile, imports,
|
|
|
12343
12344
|
}
|
|
12344
12345
|
}
|
|
12345
12346
|
}
|
|
12346
|
-
|
|
12347
|
+
for (const olc of observeListConfigs) {
|
|
12348
|
+
ensureStoreGroup(olc.storeVar);
|
|
12349
|
+
}
|
|
12350
|
+
if (importedStores.size > 0 || localObserveHandlers.size > 0 || mapRegistrations.length > 0 || observeListConfigs.length > 0) {
|
|
12347
12351
|
const storeConfigs = Array.from(importedStores.entries()).map(([storeVar, config]) => ({
|
|
12348
12352
|
storeVar,
|
|
12349
12353
|
captureExpression: config.captureExpression,
|
|
@@ -12358,9 +12362,6 @@ function applyStaticReactivity(ast, originalAST, className, sourceFile, imports,
|
|
|
12358
12362
|
})
|
|
12359
12363
|
)
|
|
12360
12364
|
}));
|
|
12361
|
-
for (const olc of observeListConfigs) {
|
|
12362
|
-
ensureStoreGroup(olc.storeVar);
|
|
12363
|
-
}
|
|
12364
12365
|
if (storeConfigs.length > 0 || mapRegistrations.length > 0 || observeListConfigs.length > 0) {
|
|
12365
12366
|
const createdHooksMethod = generateCreatedHooks(
|
|
12366
12367
|
storeConfigs,
|