@absolutejs/absolute 0.18.2-beta.3 → 0.18.2-beta.4

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
@@ -173571,16 +173571,14 @@ var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
173571
173571
  if (!hasChanges)
173572
173572
  return;
173573
173573
  const oldWatchPaths = new Set(getWatchPaths(oldConfig, state.resolvedPaths));
173574
- const newlyAddedReact = !oldConfig.reactDirectory && !!newConfig.reactDirectory;
173575
- const newlyAddedAngular = !oldConfig.angularDirectory && !!newConfig.angularDirectory;
173576
173574
  for (const key of FRAMEWORK_DIR_KEYS) {
173577
173575
  state.config[key] = newConfig[key];
173578
173576
  }
173579
173577
  state.resolvedPaths = resolveBuildPaths(state.config);
173580
- if (newlyAddedReact) {
173578
+ if (!oldConfig.reactDirectory && !!newConfig.reactDirectory) {
173581
173579
  setDevVendorPaths(computeVendorPaths());
173582
173580
  }
173583
- if (newlyAddedAngular) {
173581
+ if (!oldConfig.angularDirectory && !!newConfig.angularDirectory) {
173584
173582
  setAngularVendorPaths(computeAngularVendorPaths());
173585
173583
  }
173586
173584
  const newWatchPaths = getWatchPaths(state.config, state.resolvedPaths);
@@ -173594,6 +173592,8 @@ var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
173594
173592
  });
173595
173593
  });
173596
173594
  }
173595
+ }, rebuildManifest = async (cached) => {
173596
+ const state = cached.hmrState;
173597
173597
  try {
173598
173598
  const newManifest = await build2({
173599
173599
  ...state.config,
@@ -173609,16 +173609,6 @@ var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
173609
173609
  await populateAssetStore(state.assetStore, cached.manifest, state.resolvedPaths.buildDir);
173610
173610
  await cleanStaleAssets(state.assetStore, cached.manifest, state.resolvedPaths.buildDir);
173611
173611
  }
173612
- if (newlyAddedReact) {
173613
- await buildReactVendor(state.resolvedPaths.buildDir);
173614
- const vendorDir = resolve20(state.resolvedPaths.buildDir, "react", "vendor");
173615
- await loadVendorFiles(state.assetStore, vendorDir, "react");
173616
- }
173617
- if (newlyAddedAngular) {
173618
- await buildAngularVendor(state.resolvedPaths.buildDir);
173619
- const vendorDir = resolve20(state.resolvedPaths.buildDir, "angular", "vendor");
173620
- await loadVendorFiles(state.assetStore, vendorDir, "angular");
173621
- }
173622
173612
  } catch {}
173623
173613
  }, handleCachedReload = async () => {
173624
173614
  const serverMtime = statSync(resolve20(Bun.main)).mtimeMs;
@@ -173635,6 +173625,7 @@ var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
173635
173625
  logServerReload();
173636
173626
  if (cached) {
173637
173627
  await detectConfigChanges(cached);
173628
+ await rebuildManifest(cached);
173638
173629
  }
173639
173630
  } else {
173640
173631
  globalThis.__hmrSkipServerRestart = true;
@@ -174174,5 +174165,5 @@ export {
174174
174165
  ANGULAR_INIT_TIMEOUT_MS
174175
174166
  };
174176
174167
 
174177
- //# debugId=25E41571381617E364756E2164756E21
174168
+ //# debugId=7812D3EBBB998C4164756E2164756E21
174178
174169
  //# sourceMappingURL=index.js.map