@absolutejs/absolute 0.19.0-beta.23 → 0.19.0-beta.24

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/build.js CHANGED
@@ -203786,9 +203786,14 @@ var toSafeFileName3 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
203786
203786
  if (exportNames.length > 0) {
203787
203787
  lines.push(`export { ${exportNames.join(", ")} } from '${specifier}';`);
203788
203788
  }
203789
- if ("default" in mod && mod.default !== undefined && mod.default !== mod) {
203790
- lines.push(`export { default } from '${specifier}';`);
203791
- }
203789
+ try {
203790
+ const resolved = __require.resolve(specifier);
203791
+ const source = await Bun.file(resolved).text();
203792
+ const hasExportDefault = /export\s+default\b/.test(source) || /module\.exports\s*=/.test(source);
203793
+ if (hasExportDefault) {
203794
+ lines.push(`export { default } from '${specifier}';`);
203795
+ }
203796
+ } catch {}
203792
203797
  if (lines.length === 0) {
203793
203798
  return `export * from '${specifier}';
203794
203799
  `;
@@ -204115,5 +204120,5 @@ export {
204115
204120
  build
204116
204121
  };
204117
204122
 
204118
- //# debugId=DDD7C25E28893A1364756E2164756E21
204123
+ //# debugId=8FF19A4F907C501364756E2164756E21
204119
204124
  //# sourceMappingURL=build.js.map