@geajs/vite-plugin 1.0.22 → 1.0.23

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/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12343,7 +12343,10 @@ function applyStaticReactivity(ast, originalAST, className, sourceFile, imports,
12343
12343
  }
12344
12344
  }
12345
12345
  }
12346
- if (importedStores.size > 0 || localObserveHandlers.size > 0 || mapRegistrations.length > 0) {
12346
+ for (const olc of observeListConfigs) {
12347
+ ensureStoreGroup(olc.storeVar);
12348
+ }
12349
+ if (importedStores.size > 0 || localObserveHandlers.size > 0 || mapRegistrations.length > 0 || observeListConfigs.length > 0) {
12347
12350
  const storeConfigs = Array.from(importedStores.entries()).map(([storeVar, config]) => ({
12348
12351
  storeVar,
12349
12352
  captureExpression: config.captureExpression,
@@ -12358,9 +12361,6 @@ function applyStaticReactivity(ast, originalAST, className, sourceFile, imports,
12358
12361
  })
12359
12362
  )
12360
12363
  }));
12361
- for (const olc of observeListConfigs) {
12362
- ensureStoreGroup(olc.storeVar);
12363
- }
12364
12364
  if (storeConfigs.length > 0 || mapRegistrations.length > 0 || observeListConfigs.length > 0) {
12365
12365
  const createdHooksMethod = generateCreatedHooks(
12366
12366
  storeConfigs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geajs/vite-plugin",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Vite plugin for Gea framework - JSX/TSX transform, reactivity, HMR",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",