@absolutejs/absolute 0.19.0-beta.733 → 0.19.0-beta.734
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 +8 -33
- package/dist/build.js.map +6 -6
- package/dist/index.js +8 -33
- package/dist/index.js.map +6 -6
- package/dist/src/build/vendorEntrySource.d.ts +26 -0
- package/package.json +1 -1
- package/dist/src/build/detectDefaultExport.d.ts +0 -10
package/dist/build.js
CHANGED
|
@@ -44468,24 +44468,11 @@ var init_buildReactVendor = __esm(() => {
|
|
|
44468
44468
|
];
|
|
44469
44469
|
});
|
|
44470
44470
|
|
|
44471
|
-
// src/build/
|
|
44472
|
-
var
|
|
44473
|
-
|
|
44474
|
-
|
|
44475
|
-
|
|
44476
|
-
if (/\bexport\s+default\b/.test(content))
|
|
44477
|
-
return true;
|
|
44478
|
-
if (/\bexport\s*\{\s*[^}]*\bdefault\b[^}]*\}/.test(content))
|
|
44479
|
-
return true;
|
|
44480
|
-
if (/\bmodule\.exports\s*=/.test(content))
|
|
44481
|
-
return true;
|
|
44482
|
-
if (/\bexports\.default\s*=/.test(content))
|
|
44483
|
-
return true;
|
|
44484
|
-
return false;
|
|
44485
|
-
} catch {
|
|
44486
|
-
return false;
|
|
44487
|
-
}
|
|
44488
|
-
};
|
|
44471
|
+
// src/build/vendorEntrySource.ts
|
|
44472
|
+
var generateVendorEntrySource = (specifier) => `import * as __abs_ns from '${specifier}';
|
|
44473
|
+
` + `export * from '${specifier}';
|
|
44474
|
+
` + `export default __abs_ns.default;
|
|
44475
|
+
`;
|
|
44489
44476
|
|
|
44490
44477
|
// src/build/buildAngularVendor.ts
|
|
44491
44478
|
var exports_buildAngularVendor = {};
|
|
@@ -44596,12 +44583,7 @@ var REQUIRED_ANGULAR_SPECIFIERS, SERVER_ONLY_ANGULAR_SPECIFIERS, SCAN_SKIP_DIRS,
|
|
|
44596
44583
|
const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
|
|
44597
44584
|
const safeName = toSafeFileName2(specifier);
|
|
44598
44585
|
const entryPath = join17(tmpDir, `${safeName}.ts`);
|
|
44599
|
-
|
|
44600
|
-
const source = includeDefault ? `export * from '${specifier}';
|
|
44601
|
-
export { default } from '${specifier}';
|
|
44602
|
-
` : `export * from '${specifier}';
|
|
44603
|
-
`;
|
|
44604
|
-
await Bun.write(entryPath, source);
|
|
44586
|
+
await Bun.write(entryPath, generateVendorEntrySource(specifier));
|
|
44605
44587
|
return entryPath;
|
|
44606
44588
|
}));
|
|
44607
44589
|
const result = await bunBuild4({
|
|
@@ -49388,12 +49370,6 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49388
49370
|
dep: Array.from(dep).filter(isResolvable4),
|
|
49389
49371
|
framework: Array.from(framework).filter(isResolvable4)
|
|
49390
49372
|
};
|
|
49391
|
-
}, generateEntrySource2 = async (specifier) => {
|
|
49392
|
-
const namedReexport = `export * from '${specifier}';
|
|
49393
|
-
`;
|
|
49394
|
-
const includeDefault = await hasDefaultExport(specifier);
|
|
49395
|
-
return includeDefault ? `${namedReexport}export { default } from '${specifier}';
|
|
49396
|
-
` : namedReexport;
|
|
49397
49373
|
}, collectTransitiveImports = async (specs, alreadyVendored, alreadyScanned) => {
|
|
49398
49374
|
const { readFileSync: readFileSync15 } = await import("fs");
|
|
49399
49375
|
const transpiler4 = new Bun.Transpiler({ loader: "js" });
|
|
@@ -49440,8 +49416,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49440
49416
|
const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
|
|
49441
49417
|
const safeName = toSafeFileName5(specifier);
|
|
49442
49418
|
const entryPath = join22(tmpDir, `${safeName}.ts`);
|
|
49443
|
-
|
|
49444
|
-
await Bun.write(entryPath, source);
|
|
49419
|
+
await Bun.write(entryPath, generateVendorEntrySource(specifier));
|
|
49445
49420
|
return entryPath;
|
|
49446
49421
|
}));
|
|
49447
49422
|
return bunBuild8({
|
|
@@ -49879,5 +49854,5 @@ export {
|
|
|
49879
49854
|
build
|
|
49880
49855
|
};
|
|
49881
49856
|
|
|
49882
|
-
//# debugId=
|
|
49857
|
+
//# debugId=1D72847973D2433A64756E2164756E21
|
|
49883
49858
|
//# sourceMappingURL=build.js.map
|