@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.
@@ -86,7 +86,7 @@
86
86
  "src/vue/pageHandler.ts": "3j5xvetjyii9p",
87
87
  "src/vue/index.ts": "2hz43zpct7mgi",
88
88
  "src/core/devVendorPaths.ts": "1n8mzzxtyk99u",
89
- "src/core/devBuild.ts": "tj9jlukl7fwq",
89
+ "src/core/devBuild.ts": "6lknkji0mqg2",
90
90
  "src/core/prepare.ts": "2qtxdqcmxdc70",
91
91
  "src/core/lookup.ts": "26sxtbdzs5myx",
92
92
  "src/core/index.ts": "2e2493pkqrfdy",
@@ -124,6 +124,7 @@
124
124
  "tests/integration/hmr/lifecycle/cold-start.test.ts": "ehjvmud8s48k",
125
125
  "tests/integration/hmr/lifecycle/reconnect.test.ts": "xlrjz21uz03h",
126
126
  "tests/integration/hmr/lifecycle/first-change.test.ts": "3m8d0all6pfm7",
127
+ "tests/integration/hmr/lifecycle/config-change.test.ts": "2j3xpm4z8dix3",
127
128
  "tests/integration/hmr/lifecycle/error-recovery.test.ts": "19ctdcrh5bxj9",
128
129
  "tests/integration/hmr/lifecycle/warm-change.test.ts": "k3iqtujw6gd6",
129
130
  "tests/integration/hmr/lifecycle/rapid-changes.test.ts": "2uz9fnpw1wk9l",
@@ -177,7 +178,7 @@
177
178
  "example/angular/compiled/components/counter.component.js": "2oew7n0s1wzck",
178
179
  "eslint.config.mjs": "kk4n5twg4v4r",
179
180
  "tsconfig.json": "3pf54bnsv1pxc",
180
- "package.json": "wf0ev80hdvsh",
181
+ "package.json": "x39cmaydzezz",
181
182
  "tsconfig.build.json": "976e92rva922",
182
183
  "example/svelte/pages/SvelteExample.svelte": "18y2nvi52u8ps",
183
184
  "example/svelte/components/Counter.svelte": "1p92uo1pko0wo",
package/dist/build.js CHANGED
@@ -173543,8 +173543,15 @@ import { resolve as resolve19 } from "path";
173543
173543
  var FRAMEWORK_DIR_KEYS, reloadConfig = async () => {
173544
173544
  try {
173545
173545
  const configPath2 = resolve19(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 build({
173591
- ...state.config,
173592
- mode: "development",
173593
- options: {
173594
- ...state.config.options,
173595
- injectHMR: true
173597
+ try {
173598
+ const newManifest = await build({
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 = resolve19(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 = resolve19(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 = resolve19(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 = resolve19(state.resolvedPaths.buildDir, "angular", "vendor");
173612
- await loadVendorFiles(state.assetStore, vendorDir, "angular");
173613
- }
173622
+ } catch {}
173614
173623
  }, handleCachedReload = async () => {
173615
173624
  const serverMtime = statSync(resolve19(Bun.main)).mtimeMs;
173616
173625
  const lastMtime = globalThis.__hmrServerMtime;
@@ -173742,5 +173751,5 @@ export {
173742
173751
  build
173743
173752
  };
173744
173753
 
173745
- //# debugId=91A7DF87D8F15FFE64756E2164756E21
173754
+ //# debugId=D5E44AF033CD2C3E64756E2164756E21
173746
173755
  //# sourceMappingURL=build.js.map