@absolutejs/absolute 0.19.0-beta.357 → 0.19.0-beta.359

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 CHANGED
@@ -202142,7 +202142,12 @@ ${fields}
202142
202142
  if (hmr && cachedWrapper && cachedWrapper.serverHash === serverContentHash && existsSync15(clientFile)) {
202143
202143
  return { clientPath: clientFile, indexUnchanged: true, serverPath: rawServerFile };
202144
202144
  }
202145
- let rewritten = original.replace(new RegExp(`templateUrl:\\s*['"]\\.\\/${fileBase}\\.html['"]`), `templateUrl: '../../pages/${fileBase}.html'`);
202145
+ let rewritten = original;
202146
+ if (!rewritten.includes(`import '@angular/compiler';`)) {
202147
+ rewritten = `import '@angular/compiler';
202148
+ ${rewritten}`;
202149
+ }
202150
+ rewritten = rewritten.replace(new RegExp(`templateUrl:\\s*['"]\\.\\/${fileBase}\\.html['"]`), `templateUrl: '../../pages/${fileBase}.html'`);
202146
202151
  if (!rewritten.includes("export default")) {
202147
202152
  rewritten += `
202148
202153
  export default ${componentClassName};
@@ -202218,6 +202223,7 @@ bootstrapApplication(${componentClassName}, {
202218
202223
  window.__ANGULAR_APP__ = appRef;
202219
202224
  });
202220
202225
  `.trim() : `
202226
+ import '@angular/compiler';
202221
202227
  import { bootstrapApplication } from '@angular/platform-browser';
202222
202228
  import { provideClientHydration } from '@angular/platform-browser';
202223
202229
  import { enableProdMode, provideZonelessChangeDetection } from '@angular/core';
@@ -208357,5 +208363,5 @@ export {
208357
208363
  build
208358
208364
  };
208359
208365
 
208360
- //# debugId=0DB36CB93962EF2364756E2164756E21
208366
+ //# debugId=5F6C9870E5FA9FF564756E2164756E21
208361
208367
  //# sourceMappingURL=build.js.map