@absolutejs/absolute 0.19.0-beta.733 → 0.19.0-beta.735
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/angular/index.js +13 -2
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +13 -2
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +20 -34
- package/dist/build.js.map +7 -7
- package/dist/index.js +20 -34
- package/dist/index.js.map +7 -7
- 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
|
@@ -44432,6 +44432,11 @@ var propProviders = Object.entries(pageProps).map(function(entry) {
|
|
|
44432
44432
|
var token = pageModule[toScreamingSnake(propName)];
|
|
44433
44433
|
return isInjectionToken(token) ? { provide: token, useValue: propValue } : null;
|
|
44434
44434
|
}).filter(Boolean);
|
|
44435
|
+
// Page-level providers, opt-in via \`export const providers = [...]\` in the
|
|
44436
|
+
// page module. Required so DI tokens that the component (or any service it
|
|
44437
|
+
// injects) needs are available client-side too \u2014 without these, services
|
|
44438
|
+
// that worked in SSR fail with NG0201 after hydration.
|
|
44439
|
+
var pageProviders = Array.isArray(pageModule.providers) ? pageModule.providers : [];
|
|
44435
44440
|
|
|
44436
44441
|
// Re-Bootstrap HMR with View Transitions API
|
|
44437
44442
|
if (window.__ANGULAR_APP__) {
|
|
@@ -44450,6 +44455,7 @@ if (!window.__HMR_SKIP_HYDRATION__ && !pageHasIslands) {
|
|
|
44450
44455
|
providers.push(provideClientHydration());
|
|
44451
44456
|
}
|
|
44452
44457
|
delete window.__HMR_SKIP_HYDRATION__;
|
|
44458
|
+
providers.push.apply(providers, pageProviders);
|
|
44453
44459
|
providers.push.apply(providers, propProviders);
|
|
44454
44460
|
window.__ABS_SLOT_HYDRATION_PENDING__ = pageHasRawStreamingSlots;
|
|
44455
44461
|
|
|
@@ -44497,10 +44503,15 @@ var propProviders = Object.entries(pageProps).map(function(entry) {
|
|
|
44497
44503
|
var token = pageModule[toScreamingSnake(propName)];
|
|
44498
44504
|
return isInjectionToken(token) ? { provide: token, useValue: propValue } : null;
|
|
44499
44505
|
}).filter(Boolean);
|
|
44506
|
+
// Page-level providers, opt-in via \`export const providers = [...]\` in the
|
|
44507
|
+
// page module. Required so DI tokens that the component (or any service it
|
|
44508
|
+
// injects) needs are available client-side too \u2014 without these, services
|
|
44509
|
+
// that worked in SSR fail with NG0201 after hydration.
|
|
44510
|
+
var pageProviders = Array.isArray(pageModule.providers) ? pageModule.providers : [];
|
|
44500
44511
|
|
|
44501
44512
|
enableProdMode();
|
|
44502
44513
|
|
|
44503
|
-
var providers = [provideZonelessChangeDetection()].concat(propProviders);
|
|
44514
|
+
var providers = [provideZonelessChangeDetection()].concat(pageProviders).concat(propProviders);
|
|
44504
44515
|
if (!pageHasIslands) {
|
|
44505
44516
|
providers.unshift(provideClientHydration());
|
|
44506
44517
|
}
|
|
@@ -44660,24 +44671,11 @@ var init_buildReactVendor = __esm(() => {
|
|
|
44660
44671
|
];
|
|
44661
44672
|
});
|
|
44662
44673
|
|
|
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
|
-
};
|
|
44674
|
+
// src/build/vendorEntrySource.ts
|
|
44675
|
+
var generateVendorEntrySource = (specifier) => `import * as __abs_ns from '${specifier}';
|
|
44676
|
+
` + `export * from '${specifier}';
|
|
44677
|
+
` + `export default __abs_ns.default;
|
|
44678
|
+
`;
|
|
44681
44679
|
|
|
44682
44680
|
// src/build/buildAngularVendor.ts
|
|
44683
44681
|
var exports_buildAngularVendor = {};
|
|
@@ -44788,12 +44786,7 @@ var REQUIRED_ANGULAR_SPECIFIERS, SERVER_ONLY_ANGULAR_SPECIFIERS, SCAN_SKIP_DIRS,
|
|
|
44788
44786
|
const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
|
|
44789
44787
|
const safeName = toSafeFileName2(specifier);
|
|
44790
44788
|
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);
|
|
44789
|
+
await Bun.write(entryPath, generateVendorEntrySource(specifier));
|
|
44797
44790
|
return entryPath;
|
|
44798
44791
|
}));
|
|
44799
44792
|
const result = await bunBuild4({
|
|
@@ -49465,12 +49458,6 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49465
49458
|
dep: Array.from(dep).filter(isResolvable4),
|
|
49466
49459
|
framework: Array.from(framework).filter(isResolvable4)
|
|
49467
49460
|
};
|
|
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
49461
|
}, collectTransitiveImports = async (specs, alreadyVendored, alreadyScanned) => {
|
|
49475
49462
|
const { readFileSync: readFileSync15 } = await import("fs");
|
|
49476
49463
|
const transpiler4 = new Bun.Transpiler({ loader: "js" });
|
|
@@ -49517,8 +49504,7 @@ var toSafeFileName5 = (specifier) => specifier.replace(/\//g, "_").replace(/@/g,
|
|
|
49517
49504
|
const entrypoints = await Promise.all(specifiers.map(async (specifier) => {
|
|
49518
49505
|
const safeName = toSafeFileName5(specifier);
|
|
49519
49506
|
const entryPath = join22(tmpDir, `${safeName}.ts`);
|
|
49520
|
-
|
|
49521
|
-
await Bun.write(entryPath, source);
|
|
49507
|
+
await Bun.write(entryPath, generateVendorEntrySource(specifier));
|
|
49522
49508
|
return entryPath;
|
|
49523
49509
|
}));
|
|
49524
49510
|
return bunBuild8({
|
|
@@ -58339,5 +58325,5 @@ export {
|
|
|
58339
58325
|
ANGULAR_INIT_TIMEOUT_MS
|
|
58340
58326
|
};
|
|
58341
58327
|
|
|
58342
|
-
//# debugId=
|
|
58328
|
+
//# debugId=4F8041289BACD62064756E2164756E21
|
|
58343
58329
|
//# sourceMappingURL=index.js.map
|