@absolutejs/absolute 0.19.0-beta.29 → 0.19.0-beta.30

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 CHANGED
@@ -171543,10 +171543,18 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
171543
171543
  ...cssOutputs.map((a) => a.path)
171544
171544
  ]);
171545
171545
  }
171546
+ if (hmr && reactIndexesPath) {
171547
+ const devIndexDir = join11(buildPath, "_src_indexes");
171548
+ mkdirSync6(devIndexDir, { recursive: true });
171549
+ cpSync(reactIndexesPath, devIndexDir, {
171550
+ force: true,
171551
+ recursive: true
171552
+ });
171553
+ }
171546
171554
  if (!options?.preserveIntermediateFiles)
171547
171555
  await cleanup({
171548
171556
  angularDir,
171549
- reactIndexesPath: hmr ? undefined : reactIndexesPath,
171557
+ reactIndexesPath,
171550
171558
  svelteDir,
171551
171559
  vueDir
171552
171560
  });
@@ -202119,7 +202127,7 @@ var init_pageHandler = __esm(() => {
202119
202127
 
202120
202128
  // src/dev/transformCache.ts
202121
202129
  import { statSync } from "fs";
202122
- var cache, getTransformed = (filePath) => {
202130
+ var globalStore, cache, getTransformed = (filePath) => {
202123
202131
  const entry = cache.get(filePath);
202124
202132
  if (!entry)
202125
202133
  return;
@@ -202137,7 +202145,9 @@ var cache, getTransformed = (filePath) => {
202137
202145
  cache.delete(filePath);
202138
202146
  };
202139
202147
  var init_transformCache = __esm(() => {
202140
- cache = new Map;
202148
+ globalStore = globalThis;
202149
+ cache = globalStore.__transformCache ?? new Map;
202150
+ globalStore.__transformCache = cache;
202141
202151
  });
202142
202152
 
202143
202153
  // src/dev/moduleServer.ts
@@ -204353,16 +204363,13 @@ var prepare = async (configOrPath) => {
204353
204363
  });
204354
204364
  const hmrPlugin = hmr2(result.hmrState, result.manifest, moduleHandler);
204355
204365
  const { SRC_URL_PREFIX: SRC_URL_PREFIX2 } = await Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
204356
- const reactDir = config.reactDirectory;
204357
- if (reactDir) {
204358
- const indexesDir = resolve22(reactDir, "indexes");
204359
- for (const key of Object.keys(result.manifest)) {
204360
- if (key.endsWith("Index") && typeof result.manifest[key] === "string" && result.manifest[key].includes("/indexes/")) {
204361
- const fileName = key.replace(/Index$/, "") + ".tsx";
204362
- const srcPath = resolve22(indexesDir, fileName);
204363
- const rel = relative8(process.cwd(), srcPath).replace(/\\/g, "/");
204364
- result.manifest[key] = `${SRC_URL_PREFIX2}${rel}`;
204365
- }
204366
+ const devIndexDir = resolve22(buildDir, "_src_indexes");
204367
+ for (const key of Object.keys(result.manifest)) {
204368
+ if (key.endsWith("Index") && typeof result.manifest[key] === "string" && result.manifest[key].includes("/indexes/")) {
204369
+ const fileName = key.replace(/Index$/, "") + ".tsx";
204370
+ const srcPath = resolve22(devIndexDir, fileName);
204371
+ const rel = relative8(process.cwd(), srcPath).replace(/\\/g, "/");
204372
+ result.manifest[key] = `${SRC_URL_PREFIX2}${rel}`;
204366
204373
  }
204367
204374
  }
204368
204375
  return {
@@ -204531,5 +204538,5 @@ export {
204531
204538
  ANGULAR_INIT_TIMEOUT_MS
204532
204539
  };
204533
204540
 
204534
- //# debugId=841379061E51245664756E2164756E21
204541
+ //# debugId=84062606A25D78C664756E2164756E21
204535
204542
  //# sourceMappingURL=index.js.map