@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/index.js
CHANGED
|
@@ -44660,24 +44660,11 @@ var init_buildReactVendor = __esm(() => {
|
|
|
44660
44660
|
];
|
|
44661
44661
|
});
|
|
44662
44662
|
|
|
44663
|
-
// src/build/
|
|
44664
|
-
var
|
|
44665
|
-
|
|
44666
|
-
|
|
44667
|
-
|
|
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
|
-
};
|
|
44663
|
+
// src/build/vendorEntrySource.ts
|
|
44664
|
+
var generateVendorEntrySource = (specifier) => `import * as __abs_ns from '${specifier}';
|
|
44665
|
+
` + `export * from '${specifier}';
|
|
44666
|
+
` + `export default __abs_ns.default;
|
|
44667
|
+
`;
|
|
44681
44668
|
|
|
44682
44669
|
// src/build/buildAngularVendor.ts
|
|
44683
44670
|
var exports_buildAngularVendor = {};
|
|
@@ -44788,12 +44775,7 @@ var REQUIRED_ANGULAR_SPECIFIERS, SERVER_ONLY_ANGULAR_SPECIFIERS, SCAN_SKIP_DIRS,
|
|
|
44788
44775
|
const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
|
|
44789
44776
|
const safeName = toSafeFileName2(specifier);
|
|
44790
44777
|
const entryPath = join17(tmpDir, `${safeName}.ts`);
|
|
44791
|
-
|
|
44792
|
-
const source = includeDefault ? `export * from '${specifier}';
|
|
44793
|
-
export { default } from '${specifier}';
|
|
44794
|
-
` : `export * from '${specifier}';
|
|
44795
|
-
`;
|
|
44796
|
-
await Bun.write(entryPath, source);
|
|
44778
|
+
await Bun.write(entryPath, generateVendorEntrySource(specifier));
|
|
44797
44779
|
return entryPath;
|
|
44798
44780
|
}));
|
|
44799
44781
|
const result = await bunBuild4({
|
|
@@ -49465,12 +49447,6 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49465
49447
|
dep: Array.from(dep).filter(isResolvable4),
|
|
49466
49448
|
framework: Array.from(framework).filter(isResolvable4)
|
|
49467
49449
|
};
|
|
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
49450
|
}, collectTransitiveImports = async (specs, alreadyVendored, alreadyScanned) => {
|
|
49475
49451
|
const { readFileSync: readFileSync15 } = await import("fs");
|
|
49476
49452
|
const transpiler4 = new Bun.Transpiler({ loader: "js" });
|
|
@@ -49517,8 +49493,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49517
49493
|
const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
|
|
49518
49494
|
const safeName = toSafeFileName5(specifier);
|
|
49519
49495
|
const entryPath = join22(tmpDir, `${safeName}.ts`);
|
|
49520
|
-
|
|
49521
|
-
await Bun.write(entryPath, source);
|
|
49496
|
+
await Bun.write(entryPath, generateVendorEntrySource(specifier));
|
|
49522
49497
|
return entryPath;
|
|
49523
49498
|
}));
|
|
49524
49499
|
return bunBuild8({
|
|
@@ -58339,5 +58314,5 @@ export {
|
|
|
58339
58314
|
ANGULAR_INIT_TIMEOUT_MS
|
|
58340
58315
|
};
|
|
58341
58316
|
|
|
58342
|
-
//# debugId=
|
|
58317
|
+
//# debugId=C4C031E905AA4A0E64756E2164756E21
|
|
58343
58318
|
//# sourceMappingURL=index.js.map
|