@absolutejs/absolute 0.19.0-beta.22 → 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/.absolutejs/tsconfig.tsbuildinfo +1 -1
- package/dist/build.js +12 -3
- package/dist/build.js.map +3 -3
- package/dist/index.js +12 -3
- package/dist/index.js.map +3 -3
- package/native/packages/darwin-arm64/package.json +1 -1
- package/native/packages/darwin-x64/package.json +1 -1
- package/native/packages/linux-arm64/package.json +1 -1
- package/native/packages/linux-x64/package.json +1 -1
- package/package.json +5 -5
package/dist/build.js
CHANGED
|
@@ -203786,8 +203786,17 @@ 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
|
-
|
|
203790
|
-
|
|
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 {}
|
|
203797
|
+
if (lines.length === 0) {
|
|
203798
|
+
return `export * from '${specifier}';
|
|
203799
|
+
`;
|
|
203791
203800
|
}
|
|
203792
203801
|
return lines.join(`
|
|
203793
203802
|
`) + `
|
|
@@ -204111,5 +204120,5 @@ export {
|
|
|
204111
204120
|
build
|
|
204112
204121
|
};
|
|
204113
204122
|
|
|
204114
|
-
//# debugId=
|
|
204123
|
+
//# debugId=8FF19A4F907C501364756E2164756E21
|
|
204115
204124
|
//# sourceMappingURL=build.js.map
|