@absolutejs/absolute 0.19.0-beta.746 → 0.19.0-beta.747

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.
@@ -4118,46 +4118,57 @@ var absoluteHttpTransferCacheOptions = {
4118
4118
  }
4119
4119
  };
4120
4120
 
4121
- // Re-Bootstrap HMR with View Transitions API
4122
- if (window.__ANGULAR_APP__) {
4123
- try { window.__ANGULAR_APP__.destroy(); } catch (_err) { /* ignore */ }
4124
- window.__ANGULAR_APP__ = null;
4125
- }
4121
+ // Re-export the page module so HMR fast-patch (in handlers/angular.ts) can
4122
+ // dynamically import this chunk and discover the freshly-built component
4123
+ // classes without needing a separate build artifact.
4124
+ export * from '${normalizedImportPath}';
4126
4125
 
4127
- // Ensure root element exists after destroy (Angular removes it)
4128
- var _sel = ${componentClassName}.\u0275cmp?.selectors?.[0]?.[0] || 'ng-app';
4129
- if (!document.querySelector(_sel)) {
4130
- (document.getElementById('root') || document.body).appendChild(document.createElement(_sel));
4131
- }
4126
+ // Re-Bootstrap HMR with View Transitions API.
4127
+ // Skipped during fast-patch: the HMR client sets
4128
+ // window.__ANGULAR_HMR_FAST_PATCH__ = true before \`import()\`-ing this
4129
+ // chunk so it can read the new component classes via \`export *\` above
4130
+ // without destroying the running app.
4131
+ if (!window.__ANGULAR_HMR_FAST_PATCH__) {
4132
+ if (window.__ANGULAR_APP__) {
4133
+ try { window.__ANGULAR_APP__.destroy(); } catch (_err) { /* ignore */ }
4134
+ window.__ANGULAR_APP__ = null;
4135
+ }
4132
4136
 
4133
- var providers = [provideZonelessChangeDetection()];
4134
- if (!window.__HMR_SKIP_HYDRATION__ && !pageHasIslands) {
4135
- providers.push(provideClientHydration(withHttpTransferCacheOptions(absoluteHttpTransferCacheOptions)));
4136
- }
4137
- delete window.__HMR_SKIP_HYDRATION__;
4138
- providers.push.apply(providers, pageProviders);
4139
- providers.push.apply(providers, propProviders);
4140
- window.__ABS_SLOT_HYDRATION_PENDING__ = pageHasRawStreamingSlots;
4137
+ // Ensure root element exists after destroy (Angular removes it)
4138
+ var _sel = ${componentClassName}.\u0275cmp?.selectors?.[0]?.[0] || 'ng-app';
4139
+ if (!document.querySelector(_sel)) {
4140
+ (document.getElementById('root') || document.body).appendChild(document.createElement(_sel));
4141
+ }
4141
4142
 
4142
- if (pageHasRawStreamingSlots) {
4143
- window.__ABS_SLOT_HYDRATION_PENDING__ = false;
4144
- if (typeof window.__ABS_SLOT_FLUSH__ === 'function') {
4145
- requestAnimationFrame(function() {
4146
- window.__ABS_SLOT_FLUSH__();
4147
- });
4143
+ var providers = [provideZonelessChangeDetection()];
4144
+ if (!window.__HMR_SKIP_HYDRATION__ && !pageHasIslands) {
4145
+ providers.push(provideClientHydration(withHttpTransferCacheOptions(absoluteHttpTransferCacheOptions)));
4148
4146
  }
4149
- } else {
4150
- bootstrapApplication(${componentClassName}, {
4151
- providers: providers
4152
- }).then(function (appRef) {
4153
- window.__ANGULAR_APP__ = appRef;
4147
+ delete window.__HMR_SKIP_HYDRATION__;
4148
+ providers.push.apply(providers, pageProviders);
4149
+ providers.push.apply(providers, propProviders);
4150
+ window.__ABS_SLOT_HYDRATION_PENDING__ = pageHasRawStreamingSlots;
4151
+
4152
+ if (pageHasRawStreamingSlots) {
4154
4153
  window.__ABS_SLOT_HYDRATION_PENDING__ = false;
4155
4154
  if (typeof window.__ABS_SLOT_FLUSH__ === 'function') {
4156
4155
  requestAnimationFrame(function() {
4157
4156
  window.__ABS_SLOT_FLUSH__();
4158
4157
  });
4159
4158
  }
4160
- });
4159
+ } else {
4160
+ bootstrapApplication(${componentClassName}, {
4161
+ providers: providers
4162
+ }).then(function (appRef) {
4163
+ window.__ANGULAR_APP__ = appRef;
4164
+ window.__ABS_SLOT_HYDRATION_PENDING__ = false;
4165
+ if (typeof window.__ABS_SLOT_FLUSH__ === 'function') {
4166
+ requestAnimationFrame(function() {
4167
+ window.__ABS_SLOT_FLUSH__();
4168
+ });
4169
+ }
4170
+ });
4171
+ }
4161
4172
  }
4162
4173
  `.trim() : `
4163
4174
  import '@angular/compiler';
@@ -5427,5 +5438,5 @@ export {
5427
5438
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
5428
5439
  };
5429
5440
 
5430
- //# debugId=97ED6D866DDC29C564756E2164756E21
5441
+ //# debugId=C0FBF0E94418BEFE64756E2164756E21
5431
5442
  //# sourceMappingURL=server.js.map