@absolutejs/absolute 0.18.2-beta.0 → 0.18.2-beta.2

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
@@ -173543,8 +173543,15 @@ import { resolve as resolve20 } from "path";
173543
173543
  var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
173544
173544
  try {
173545
173545
  const configPath2 = resolve20(process.env.ABSOLUTE_CONFIG ?? "absolute.config.ts");
173546
- const mod = await import(`${configPath2}?t=${Date.now()}`);
173547
- return mod.default ?? mod.config ?? null;
173546
+ const source = await Bun.file(configPath2).text();
173547
+ const config = {};
173548
+ const dirPattern = /(\w+Directory)\s*:\s*['"]([^'"]+)['"]/g;
173549
+ let match;
173550
+ while ((match = dirPattern.exec(source)) !== null) {
173551
+ const [, key, value] = match;
173552
+ config[key] = value;
173553
+ }
173554
+ return Object.keys(config).length > 0 ? config : null;
173548
173555
  } catch {
173549
173556
  return null;
173550
173557
  }
@@ -173587,30 +173594,32 @@ var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
173587
173594
  });
173588
173595
  });
173589
173596
  }
173590
- const newManifest = await build2({
173591
- ...state.config,
173592
- mode: "development",
173593
- options: {
173594
- ...state.config.options,
173595
- injectHMR: true
173597
+ try {
173598
+ const newManifest = await build2({
173599
+ ...state.config,
173600
+ mode: "development",
173601
+ options: {
173602
+ ...state.config.options,
173603
+ injectHMR: true
173604
+ }
173605
+ });
173606
+ if (newManifest) {
173607
+ Object.assign(cached.manifest, newManifest);
173608
+ state.manifest = cached.manifest;
173609
+ await populateAssetStore(state.assetStore, cached.manifest, state.resolvedPaths.buildDir);
173610
+ await cleanStaleAssets(state.assetStore, cached.manifest, state.resolvedPaths.buildDir);
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");
173596
173621
  }
173597
- });
173598
- if (newManifest) {
173599
- Object.assign(cached.manifest, newManifest);
173600
- state.manifest = cached.manifest;
173601
- await populateAssetStore(state.assetStore, cached.manifest, state.resolvedPaths.buildDir);
173602
- await cleanStaleAssets(state.assetStore, cached.manifest, state.resolvedPaths.buildDir);
173603
- }
173604
- if (newlyAddedReact) {
173605
- await buildReactVendor(state.resolvedPaths.buildDir);
173606
- const vendorDir = resolve20(state.resolvedPaths.buildDir, "react", "vendor");
173607
- await loadVendorFiles(state.assetStore, vendorDir, "react");
173608
- }
173609
- if (newlyAddedAngular) {
173610
- await buildAngularVendor(state.resolvedPaths.buildDir);
173611
- const vendorDir = resolve20(state.resolvedPaths.buildDir, "angular", "vendor");
173612
- await loadVendorFiles(state.assetStore, vendorDir, "angular");
173613
- }
173622
+ } catch {}
173614
173623
  }, handleCachedReload = async () => {
173615
173624
  const serverMtime = statSync(resolve20(Bun.main)).mtimeMs;
173616
173625
  const lastMtime = globalThis.__hmrServerMtime;
@@ -174165,5 +174174,5 @@ export {
174165
174174
  ANGULAR_INIT_TIMEOUT_MS
174166
174175
  };
174167
174176
 
174168
- //# debugId=FEE4233B26EB137064756E2164756E21
174177
+ //# debugId=25E41571381617E364756E2164756E21
174169
174178
  //# sourceMappingURL=index.js.map