@absolutejs/absolute 0.19.0-beta.732 → 0.19.0-beta.733

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
@@ -44660,6 +44660,25 @@ var init_buildReactVendor = __esm(() => {
44660
44660
  ];
44661
44661
  });
44662
44662
 
44663
+ // src/build/detectDefaultExport.ts
44664
+ var hasDefaultExport = async (specifier) => {
44665
+ try {
44666
+ const resolved = Bun.resolveSync(specifier, process.cwd());
44667
+ const content = await Bun.file(resolved).text();
44668
+ if (/\bexport\s+default\b/.test(content))
44669
+ return true;
44670
+ if (/\bexport\s*\{\s*[^}]*\bdefault\b[^}]*\}/.test(content))
44671
+ return true;
44672
+ if (/\bmodule\.exports\s*=/.test(content))
44673
+ return true;
44674
+ if (/\bexports\.default\s*=/.test(content))
44675
+ return true;
44676
+ return false;
44677
+ } catch {
44678
+ return false;
44679
+ }
44680
+ };
44681
+
44663
44682
  // src/build/buildAngularVendor.ts
44664
44683
  var exports_buildAngularVendor = {};
44665
44684
  __export(exports_buildAngularVendor, {
@@ -44769,8 +44788,12 @@ var REQUIRED_ANGULAR_SPECIFIERS, SERVER_ONLY_ANGULAR_SPECIFIERS, SCAN_SKIP_DIRS,
44769
44788
  const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
44770
44789
  const safeName = toSafeFileName2(specifier);
44771
44790
  const entryPath = join17(tmpDir, `${safeName}.ts`);
44772
- await Bun.write(entryPath, `export * from '${specifier}';
44773
- `);
44791
+ const includeDefault = await hasDefaultExport(specifier);
44792
+ const source = includeDefault ? `export * from '${specifier}';
44793
+ export { default } from '${specifier}';
44794
+ ` : `export * from '${specifier}';
44795
+ `;
44796
+ await Bun.write(entryPath, source);
44774
44797
  return entryPath;
44775
44798
  }));
44776
44799
  const result = await bunBuild4({
@@ -49442,8 +49465,13 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
49442
49465
  dep: Array.from(dep).filter(isResolvable4),
49443
49466
  framework: Array.from(framework).filter(isResolvable4)
49444
49467
  };
49445
- }, generateEntrySource2 = (specifier) => `export * from '${specifier}';
49446
- `, collectTransitiveImports = async (specs, alreadyVendored, alreadyScanned) => {
49468
+ }, generateEntrySource2 = async (specifier) => {
49469
+ const namedReexport = `export * from '${specifier}';
49470
+ `;
49471
+ const includeDefault = await hasDefaultExport(specifier);
49472
+ return includeDefault ? `${namedReexport}export { default } from '${specifier}';
49473
+ ` : namedReexport;
49474
+ }, collectTransitiveImports = async (specs, alreadyVendored, alreadyScanned) => {
49447
49475
  const { readFileSync: readFileSync15 } = await import("fs");
49448
49476
  const transpiler4 = new Bun.Transpiler({ loader: "js" });
49449
49477
  const newSpecs = new Set;
@@ -58311,5 +58339,5 @@ export {
58311
58339
  ANGULAR_INIT_TIMEOUT_MS
58312
58340
  };
58313
58341
 
58314
- //# debugId=F4D0A34F69D98D4064756E2164756E21
58342
+ //# debugId=3733D59ADD660B6264756E2164756E21
58315
58343
  //# sourceMappingURL=index.js.map