@absolutejs/absolute 0.19.0-beta.1031 → 0.19.0-beta.1032

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.
Files changed (74) hide show
  1. package/dist/angular/browser.js +18 -16
  2. package/dist/angular/browser.js.map +5 -5
  3. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  4. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  5. package/dist/angular/hmrPreserveCore.ts +83 -118
  6. package/dist/angular/index.js +49 -49
  7. package/dist/angular/index.js.map +12 -12
  8. package/dist/angular/server.js +34 -34
  9. package/dist/angular/server.js.map +10 -10
  10. package/dist/build.js +135 -135
  11. package/dist/build.js.map +26 -26
  12. package/dist/cli/config/client.js +1 -1
  13. package/dist/cli/config/server.js +43 -43
  14. package/dist/cli/index.js +23 -13
  15. package/dist/client/index.js +9 -9
  16. package/dist/client/index.js.map +8 -8
  17. package/dist/dev/client/errorOverlay.ts +4 -4
  18. package/dist/dev/client/handlers/angularHmrShim.ts +17 -17
  19. package/dist/dev/client/handlers/angularRemount.ts +6 -4
  20. package/dist/dev/client/handlers/angularRemountWiring.ts +1 -1
  21. package/dist/dev/client/hmrToast.ts +18 -18
  22. package/dist/index.js +149 -150
  23. package/dist/index.js.map +31 -31
  24. package/dist/islands/browser.js.map +1 -1
  25. package/dist/islands/index.js +5 -5
  26. package/dist/islands/index.js.map +6 -6
  27. package/dist/react/browser.js.map +1 -1
  28. package/dist/react/components/index.js +2 -2
  29. package/dist/react/components/index.js.map +3 -3
  30. package/dist/react/hooks/index.js.map +1 -1
  31. package/dist/react/index.js +21 -21
  32. package/dist/react/index.js.map +9 -9
  33. package/dist/react/server.js +17 -17
  34. package/dist/react/server.js.map +5 -5
  35. package/dist/src/angular/hmrPreserveCore.d.ts +5 -18
  36. package/dist/src/angular/islands.d.ts +1 -1
  37. package/dist/src/cli/config/packageJson/editPackageJson.d.ts +2 -2
  38. package/dist/src/cli/config/schema/fromJsonSchema.d.ts +1 -1
  39. package/dist/src/client/hydrators/react.d.ts +1 -1
  40. package/dist/src/client/hydrators/svelte.d.ts +1 -1
  41. package/dist/src/client/hydrators/vue.d.ts +1 -1
  42. package/dist/src/client/islandStore.d.ts +3 -3
  43. package/dist/src/core/devRouteRegistrationCallsite.d.ts +1 -5
  44. package/dist/src/dev/angular/fastHmrCompiler.d.ts +2 -2
  45. package/dist/src/dev/angular/hmrCompiler.d.ts +1 -1
  46. package/dist/src/dev/angular/resolveOwningComponents.d.ts +1 -1
  47. package/dist/src/svelte/router/hashMode.d.ts +1 -6
  48. package/dist/src/svelte/router/matchPath.d.ts +2 -22
  49. package/dist/src/svelte/router/page.svelte.d.ts +1 -10
  50. package/dist/src/svelte/router/prefetchCache.d.ts +2 -6
  51. package/dist/src/utils/generatedDir.d.ts +1 -1
  52. package/dist/src/utils/inlinePageCss.d.ts +1 -3
  53. package/dist/src/utils/jsonLd.d.ts +1 -1
  54. package/dist/src/utils/loadConfig.d.ts +2 -3
  55. package/dist/src/utils/resolveConvention.d.ts +1 -1
  56. package/dist/src/utils/runtimeMode.d.ts +1 -1
  57. package/dist/src/vue/defineVuePage.d.ts +1 -11
  58. package/dist/svelte/browser.js.map +1 -1
  59. package/dist/svelte/index.js +26 -26
  60. package/dist/svelte/index.js.map +9 -9
  61. package/dist/svelte/router/hashMode.ts +6 -12
  62. package/dist/svelte/router/matchPath.ts +23 -45
  63. package/dist/svelte/router/page.d.ts +1 -10
  64. package/dist/svelte/router/page.js +6 -6
  65. package/dist/svelte/router/prefetchCache.ts +12 -20
  66. package/dist/svelte/server.js +22 -22
  67. package/dist/svelte/server.js.map +5 -5
  68. package/dist/vue/browser.js +2 -2
  69. package/dist/vue/browser.js.map +4 -4
  70. package/dist/vue/index.js +29 -29
  71. package/dist/vue/index.js.map +11 -11
  72. package/dist/vue/server.js +24 -24
  73. package/dist/vue/server.js.map +6 -6
  74. package/package.json +38 -38
package/dist/index.js CHANGED
@@ -6668,7 +6668,7 @@ var init_streamingSlots = __esm(() => {
6668
6668
  });
6669
6669
 
6670
6670
  // src/utils/runtimeMode.ts
6671
- var ENV_VAR = "NODE_ENV", isProductionRuntime = () => process.env[ENV_VAR] === "production", isDevelopmentRuntime = () => process.env[ENV_VAR] === "development";
6671
+ var ENV_VAR = "NODE_ENV", isDevelopmentRuntime = () => process.env[ENV_VAR] === "development", isProductionRuntime = () => process.env[ENV_VAR] === "production";
6672
6672
 
6673
6673
  // src/angular/angularPatch.ts
6674
6674
  var exports_angularPatch = {};
@@ -7046,7 +7046,7 @@ __export(exports_islands, {
7046
7046
  isAngularComponent: () => isAngularComponent,
7047
7047
  getAngularIslandSelector: () => getAngularIslandSelector
7048
7048
  });
7049
- var angularIslandSelector = "abs-angular-island", isAngularComponent = (value) => typeof value === "function", getAngularIslandSelector = (_islandId) => angularIslandSelector, getSelectorFromRenderedIsland = (rootElement) => {
7049
+ var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_islandId) => angularIslandSelector, isAngularComponent = (value) => typeof value === "function", getSelectorFromRenderedIsland = (rootElement) => {
7050
7050
  const firstChild = rootElement.firstElementChild;
7051
7051
  if (!(firstChild instanceof HTMLElement)) {
7052
7052
  return null;
@@ -7937,8 +7937,8 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
7937
7937
  const compiledScript = hasScript ? compiler.compileScript(descriptor, {
7938
7938
  fs: {
7939
7939
  fileExists: existsSync6,
7940
- readFile: (file) => existsSync6(file) ? readFileSync6(file, "utf-8") : undefined,
7941
- realpath: realpathSync
7940
+ realpath: realpathSync,
7941
+ readFile: (file) => existsSync6(file) ? readFileSync6(file, "utf-8") : undefined
7942
7942
  },
7943
7943
  id: componentId,
7944
7944
  inlineTemplate: false
@@ -9004,6 +9004,12 @@ import { Elysia } from "elysia";
9004
9004
  var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES, PAGE_HANDLER_NAMES, pageHandlerWrappers, handlerSourceMentionsPageHelper = (handler) => {
9005
9005
  const source = handler.toString();
9006
9006
  return PAGE_HANDLER_NAMES.some((name) => source.includes(name));
9007
+ }, getOriginalPageHandlerSource = (handler) => {
9008
+ if (typeof handler !== "function")
9009
+ return;
9010
+ const fn2 = handler;
9011
+ const info = pageHandlerWrappers.get(fn2);
9012
+ return (info?.originalHandler ?? fn2).toString();
9007
9013
  }, isPageHandler = (handler) => {
9008
9014
  if (typeof handler !== "function")
9009
9015
  return false;
@@ -9011,12 +9017,6 @@ var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES,
9011
9017
  if (pageHandlerWrappers.has(fn2))
9012
9018
  return true;
9013
9019
  return handlerSourceMentionsPageHelper(fn2);
9014
- }, getOriginalPageHandlerSource = (handler) => {
9015
- if (typeof handler !== "function")
9016
- return;
9017
- const fn2 = handler;
9018
- const info = pageHandlerWrappers.get(fn2);
9019
- return (info?.originalHandler ?? fn2).toString();
9020
9020
  }, isObjectRecord3 = (value) => Boolean(value) && typeof value === "object", isAsyncLocalStorage2 = (value) => isObjectRecord3(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function", isRouteMethod = (value) => typeof value === "function", getRouteCallsiteStorage = () => {
9021
9021
  const value = Reflect.get(globalThis, ROUTE_CALLSITE_STORAGE_KEY);
9022
9022
  if (value === null || typeof value === "undefined") {
@@ -10003,7 +10003,7 @@ var DYNAMIC_SEGMENT_PATTERN, pathHasDynamic = (path) => path.split("/").some((se
10003
10003
  return null;
10004
10004
  }, readPropertyKey = (property) => {
10005
10005
  if (ts3.isPropertyAssignment(property)) {
10006
- const name = property.name;
10006
+ const { name } = property;
10007
10007
  if (ts3.isIdentifier(name) || ts3.isStringLiteral(name))
10008
10008
  return name.text;
10009
10009
  }
@@ -10214,7 +10214,7 @@ var DYNAMIC_SEGMENT_PATTERN2, pathHasDynamic2 = (path) => path.split("/").some((
10214
10214
  return null;
10215
10215
  }, readPropertyKey2 = (property) => {
10216
10216
  if (ts4.isPropertyAssignment(property)) {
10217
- const name = property.name;
10217
+ const { name } = property;
10218
10218
  if (ts4.isIdentifier(name) || ts4.isStringLiteral(name))
10219
10219
  return name.text;
10220
10220
  }
@@ -10528,7 +10528,7 @@ var DYNAMIC_SEGMENT_PATTERN4, pathHasDynamic4 = (path) => path.split("/").some((
10528
10528
  return null;
10529
10529
  }, readPropertyKey3 = (property) => {
10530
10530
  if (ts5.isPropertyAssignment(property)) {
10531
- const name = property.name;
10531
+ const { name } = property;
10532
10532
  if (ts5.isIdentifier(name) || ts5.isStringLiteral(name))
10533
10533
  return name.text;
10534
10534
  }
@@ -11109,6 +11109,7 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY, OPTIMIZATION_END
11109
11109
  case "webp":
11110
11110
  return pipeline.webp({ quality }).toBuffer();
11111
11111
  }
11112
+ throw new Error(`Unsupported image format: ${format}`);
11112
11113
  }, optimizeWithSharp = async (sharpRef, buffer, width, quality, format) => {
11113
11114
  const pipeline = sharpRef(buffer).rotate().resize(width, undefined, { withoutEnlargement: true });
11114
11115
  switch (format) {
@@ -11124,6 +11125,7 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY, OPTIMIZATION_END
11124
11125
  case "webp":
11125
11126
  return pipeline.webp({ quality }).toBuffer();
11126
11127
  }
11128
+ throw new Error(`Unsupported image format: ${format}`);
11127
11129
  }, optimizeImage = async (buffer, width, quality, format) => {
11128
11130
  const input = toBuffer(buffer);
11129
11131
  try {
@@ -12018,7 +12020,7 @@ var ENTITY_DECORATOR_RE, IMPORT_RE, TOP_LEVEL_DECL_RE, extractAllTopLevelNames =
12018
12020
  const { generatedAngularRoot, userAngularRoot, projectRoot } = params;
12019
12021
  const normalizedGenRoot = resolve19(generatedAngularRoot).replace(/\\/g, "/");
12020
12022
  const normalizedPath = componentJsAbsPath.replace(/\\/g, "/");
12021
- if (!normalizedPath.startsWith(normalizedGenRoot + "/"))
12023
+ if (!normalizedPath.startsWith(`${normalizedGenRoot}/`))
12022
12024
  return;
12023
12025
  const seen = new Set;
12024
12026
  const classNames = [];
@@ -12045,8 +12047,8 @@ var ENTITY_DECORATOR_RE, IMPORT_RE, TOP_LEVEL_DECL_RE, extractAllTopLevelNames =
12045
12047
  const depsBlock = classNames.length > 0 && depsKeys ? `
12046
12048
 
12047
12049
  // absolutejs HMR \u2014 Tier 1a class-deps registry
12048
- ` + classNames.map((c) => `try { ${c}.__abs_deps = { ${depsKeys} }; } catch {}`).join(`
12049
- `) + `
12050
+ ${classNames.map((c) => `try { ${c}.__abs_deps = { ${depsKeys} }; } catch {}`).join(`
12051
+ `)}
12050
12052
  ` : "";
12051
12053
  return jsSource + tail + depsBlock;
12052
12054
  }, createAngularHmrInjectionPlugin = (params) => ({
@@ -12096,7 +12098,7 @@ __export(exports_generatedDir, {
12096
12098
  getFrameworkGeneratedDir: () => getFrameworkGeneratedDir
12097
12099
  });
12098
12100
  import { join as join22 } from "path";
12099
- var GENERATED_DIR_NAME = "generated", ABSOLUTE_CACHE_DIR_NAME = ".absolutejs", getGeneratedRoot = (projectRoot = process.cwd()) => join22(projectRoot, ABSOLUTE_CACHE_DIR_NAME, GENERATED_DIR_NAME), getFrameworkGeneratedDir = (framework, projectRoot = process.cwd()) => join22(getGeneratedRoot(projectRoot), framework);
12101
+ var GENERATED_DIR_NAME = "generated", ABSOLUTE_CACHE_DIR_NAME = ".absolutejs", getFrameworkGeneratedDir = (framework, projectRoot = process.cwd()) => join22(getGeneratedRoot(projectRoot), framework), getGeneratedRoot = (projectRoot = process.cwd()) => join22(projectRoot, ABSOLUTE_CACHE_DIR_NAME, GENERATED_DIR_NAME);
12100
12102
  var init_generatedDir = () => {};
12101
12103
 
12102
12104
  // src/utils/cleanup.ts
@@ -12210,7 +12212,7 @@ var heldLocks, HELD_LOCKS_ENV = "ABSOLUTE_HELD_BUILD_DIRECTORY_LOCKS", exitHandl
12210
12212
  process.kill(pid, 0);
12211
12213
  return true;
12212
12214
  } catch (err) {
12213
- const code = err.code;
12215
+ const { code } = err;
12214
12216
  if (code === "ESRCH")
12215
12217
  return false;
12216
12218
  if (code === "EPERM")
@@ -16740,8 +16742,9 @@ var fail = (reason, detail, location) => ({
16740
16742
  if (a.schemasSig !== b2.schemasSig)
16741
16743
  return false;
16742
16744
  return true;
16743
- }, recordFingerprint = (id, fp) => {
16744
- fingerprintCache.set(id, fp);
16745
+ }, invalidateFingerprintCache = () => {
16746
+ fingerprintCache.clear();
16747
+ entityFingerprintCache.clear();
16745
16748
  }, primeComponentFingerprint = async (componentFilePath) => {
16746
16749
  let source;
16747
16750
  try {
@@ -16804,9 +16807,8 @@ var fail = (reason, detail, location) => ({
16804
16807
  } catch {}
16805
16808
  }
16806
16809
  }
16807
- }, invalidateFingerprintCache = () => {
16808
- fingerprintCache.clear();
16809
- entityFingerprintCache.clear();
16810
+ }, recordFingerprint = (id, fp) => {
16811
+ fingerprintCache.set(id, fp);
16810
16812
  }, entityFingerprintCache, entityFingerprintsEqual = (a, b2) => {
16811
16813
  if (a.className !== b2.className)
16812
16814
  return false;
@@ -16866,13 +16868,13 @@ var fail = (reason, detail, location) => ({
16866
16868
  break;
16867
16869
  }
16868
16870
  return {
16871
+ arrowFieldSig: extractArrowFieldSig(cls),
16869
16872
  className,
16870
- decoratorArgsText,
16871
16873
  ctorParamTypes,
16872
- topLevelImports: extractTopLevelImports(sourceFile),
16874
+ decoratorArgsText,
16873
16875
  memberDecoratorSig: extractMemberDecoratorSig(cls),
16874
- arrowFieldSig: extractArrowFieldSig(cls),
16875
- propertyFieldNames: extractPropertyFieldNames(cls)
16876
+ propertyFieldNames: extractPropertyFieldNames(cls),
16877
+ topLevelImports: extractTopLevelImports(sourceFile)
16876
16878
  };
16877
16879
  }, findClassDeclaration = (sourceFile, className) => {
16878
16880
  let found = null;
@@ -17017,7 +17019,7 @@ var fail = (reason, detail, location) => ({
17017
17019
  continue;
17018
17020
  if (member.modifiers?.some((m) => m.kind === ts15.SyntaxKind.StaticKeyword))
17019
17021
  continue;
17020
- const name = member.name;
17022
+ const { name } = member;
17021
17023
  if (name === undefined)
17022
17024
  continue;
17023
17025
  const nameText = ts15.isIdentifier(name) ? name.text : name.getText();
@@ -17136,10 +17138,10 @@ var fail = (reason, detail, location) => ({
17136
17138
  return {
17137
17139
  classPropertyName,
17138
17140
  meta: {
17139
- classPropertyName,
17140
17141
  bindingPropertyName,
17141
- required,
17142
+ classPropertyName,
17142
17143
  isSignal: false,
17144
+ required,
17143
17145
  transformFunction
17144
17146
  }
17145
17147
  };
@@ -17179,10 +17181,10 @@ var fail = (reason, detail, location) => ({
17179
17181
  return {
17180
17182
  classPropertyName,
17181
17183
  meta: {
17182
- classPropertyName,
17183
17184
  bindingPropertyName,
17184
- required,
17185
+ classPropertyName,
17185
17186
  isSignal: true,
17187
+ required,
17186
17188
  transformFunction
17187
17189
  }
17188
17190
  };
@@ -17200,7 +17202,7 @@ var fail = (reason, detail, location) => ({
17200
17202
  const arg = expr.arguments[0];
17201
17203
  if (arg && ts15.isStringLiteral(arg))
17202
17204
  bindingName = arg.text;
17203
- return { classPropertyName, bindingName };
17205
+ return { bindingName, classPropertyName };
17204
17206
  }
17205
17207
  return null;
17206
17208
  }, isOutputSignalCall = (init) => {
@@ -17225,7 +17227,7 @@ var fail = (reason, detail, location) => ({
17225
17227
  if (aliasNode !== null)
17226
17228
  bindingName = aliasNode;
17227
17229
  }
17228
- return { classPropertyName, bindingName };
17230
+ return { bindingName, classPropertyName };
17229
17231
  }, extractInputsAndOutputs = (cls, compiler) => {
17230
17232
  const inputs = {};
17231
17233
  const outputs = {};
@@ -17258,7 +17260,7 @@ var fail = (reason, detail, location) => ({
17258
17260
  hasSignalIO = true;
17259
17261
  }
17260
17262
  }
17261
- return { inputs, outputs, hasDecoratorIO, hasSignalIO };
17263
+ return { hasDecoratorIO, hasSignalIO, inputs, outputs };
17262
17264
  }, ATTR_BINDING_RE, EVENT_BINDING_RE, emptyHost = () => ({
17263
17265
  attributes: {},
17264
17266
  listeners: {},
@@ -17323,7 +17325,7 @@ var fail = (reason, detail, location) => ({
17323
17325
  continue;
17324
17326
  const event = eventArg.text;
17325
17327
  const argsArg = expr.arguments[1];
17326
- let argsList = [];
17328
+ const argsList = [];
17327
17329
  if (argsArg && ts15.isArrayLiteralExpression(argsArg)) {
17328
17330
  for (const el of argsArg.elements) {
17329
17331
  if (ts15.isStringLiteral(el))
@@ -17344,7 +17346,7 @@ var fail = (reason, detail, location) => ({
17344
17346
  descendants = getBooleanProperty(opts, "descendants") ?? true;
17345
17347
  emitDistinctChangesOnly = getBooleanProperty(opts, "emitDistinctChangesOnly") ?? true;
17346
17348
  }
17347
- return { static_, descendants, emitDistinctChangesOnly };
17349
+ return { descendants, emitDistinctChangesOnly, static_ };
17348
17350
  }, queryPredicateFromArg = (arg, compiler) => {
17349
17351
  if (ts15.isStringLiteral(arg)) {
17350
17352
  return arg.text.split(",").map((s2) => s2.trim()).filter(Boolean);
@@ -17384,14 +17386,14 @@ var fail = (reason, detail, location) => ({
17384
17386
  }
17385
17387
  }
17386
17388
  const meta = {
17387
- propertyName,
17388
- first: fn2.text === "ViewChild" || fn2.text === "ContentChild",
17389
- predicate,
17390
17389
  descendants,
17391
17390
  emitDistinctChangesOnly,
17391
+ first: fn2.text === "ViewChild" || fn2.text === "ContentChild",
17392
+ isSignal: false,
17393
+ predicate,
17394
+ propertyName,
17392
17395
  read,
17393
- static: static_,
17394
- isSignal: false
17396
+ static: static_
17395
17397
  };
17396
17398
  if (fn2.text === "ViewChild" || fn2.text === "ViewChildren") {
17397
17399
  viewQueries.push(meta);
@@ -17407,7 +17409,7 @@ var fail = (reason, detail, location) => ({
17407
17409
  for (const member of cls.members) {
17408
17410
  if (!ts15.isPropertyDeclaration(member) || !member.initializer)
17409
17411
  continue;
17410
- let init = member.initializer;
17412
+ const init = member.initializer;
17411
17413
  if (!ts15.isCallExpression(init))
17412
17414
  continue;
17413
17415
  let queryName;
@@ -17438,14 +17440,14 @@ var fail = (reason, detail, location) => ({
17438
17440
  read = new compiler.WrappedNodeExpr(readNode);
17439
17441
  }
17440
17442
  const meta = {
17441
- propertyName,
17442
- first: runtime.first,
17443
- predicate,
17444
17443
  descendants,
17445
17444
  emitDistinctChangesOnly: true,
17445
+ first: runtime.first,
17446
+ isSignal: true,
17447
+ predicate,
17448
+ propertyName,
17446
17449
  read,
17447
- static: false,
17448
- isSignal: true
17450
+ static: false
17449
17451
  };
17450
17452
  if (runtime.isView)
17451
17453
  viewQueries.push(meta);
@@ -17478,11 +17480,11 @@ var fail = (reason, detail, location) => ({
17478
17480
  if (ts15.isIdentifier(el)) {
17479
17481
  out.push({
17480
17482
  directive: {
17481
- value: new compiler.WrappedNodeExpr(el),
17482
- type: new compiler.WrappedNodeExpr(el)
17483
+ type: new compiler.WrappedNodeExpr(el),
17484
+ value: new compiler.WrappedNodeExpr(el)
17483
17485
  },
17484
- isForwardReference: false,
17485
17486
  inputs: null,
17487
+ isForwardReference: false,
17486
17488
  outputs: null
17487
17489
  });
17488
17490
  continue;
@@ -17509,11 +17511,11 @@ var fail = (reason, detail, location) => ({
17509
17511
  };
17510
17512
  out.push({
17511
17513
  directive: {
17512
- value: new compiler.WrappedNodeExpr(directiveNode),
17513
- type: new compiler.WrappedNodeExpr(directiveNode)
17514
+ type: new compiler.WrappedNodeExpr(directiveNode),
17515
+ value: new compiler.WrappedNodeExpr(directiveNode)
17514
17516
  },
17515
- isForwardReference: false,
17516
17517
  inputs: collectMap(inputsNode),
17518
+ isForwardReference: false,
17517
17519
  outputs: collectMap(outputsNode)
17518
17520
  });
17519
17521
  }
@@ -17539,14 +17541,14 @@ var fail = (reason, detail, location) => ({
17539
17541
  const animationsNode = getProperty(decoratorArgs, "animations");
17540
17542
  const animations = animationsNode ? new compiler.WrappedNodeExpr(animationsNode) : null;
17541
17543
  return {
17542
- host,
17544
+ animations,
17543
17545
  contentQueries,
17544
- viewQueries,
17545
17546
  exportAs: extractExportAs(decoratorArgs),
17547
+ host,
17548
+ hostDirectives: extractHostDirectives(decoratorArgs, compiler),
17546
17549
  providers,
17547
17550
  viewProviders,
17548
- animations,
17549
- hostDirectives: extractHostDirectives(decoratorArgs, compiler)
17551
+ viewQueries
17550
17552
  };
17551
17553
  }, childComponentInfoCache, getChildComponentInfoFromTsSource = (filePath, className) => {
17552
17554
  const cacheKey2 = `ts:${filePath}:${className}`;
@@ -17994,7 +17996,7 @@ var fail = (reason, detail, location) => ({
17994
17996
  const spec = moduleSpec.text;
17995
17997
  if (!spec.startsWith(".") && !spec.startsWith("/"))
17996
17998
  continue;
17997
- const importClause = stmt.importClause;
17999
+ const { importClause } = stmt;
17998
18000
  if (!importClause)
17999
18001
  continue;
18000
18002
  let matches = false;
@@ -18055,7 +18057,7 @@ var fail = (reason, detail, location) => ({
18055
18057
  if (!ts15.isPropertyDeclaration(member) && !ts15.isMethodDeclaration(member) && !ts15.isGetAccessorDeclaration(member) && !ts15.isSetAccessorDeclaration(member)) {
18056
18058
  continue;
18057
18059
  }
18058
- const name = member.name;
18060
+ const { name } = member;
18059
18061
  if (name === undefined)
18060
18062
  continue;
18061
18063
  const text = ts15.isIdentifier(name) ? name.text : ts15.isStringLiteral(name) || ts15.isNoSubstitutionTemplateLiteral(name) ? name.text : name.getText();
@@ -18278,10 +18280,10 @@ ${transpiled}
18278
18280
  for (const url of urls) {
18279
18281
  const css = resolveAndReadStyleResource(componentDir, url);
18280
18282
  if (css === null)
18281
- return { styles, missing: url };
18283
+ return { missing: url, styles };
18282
18284
  styles.push(css);
18283
18285
  }
18284
- return { styles, missing: null };
18286
+ return { missing: null, styles };
18285
18287
  }, buildSimpleEntityModule = (classNode, className) => {
18286
18288
  const block = buildFreshClassMethodsBlock(classNode, className);
18287
18289
  if (!block) {
@@ -18415,9 +18417,9 @@ ${block}
18415
18417
  const lineTextValue = typeof lineIndex === "number" && lineIndex >= 0 ? templateText.split(/\r?\n/)[lineIndex] ?? undefined : undefined;
18416
18418
  return fail("template-parse-error", parsed.errors.map((e) => e.toString()).join(`
18417
18419
  `), {
18420
+ column: typeof colIndex === "number" ? colIndex + 1 : undefined,
18418
18421
  file: templatePath,
18419
18422
  line: typeof lineIndex === "number" ? lineIndex + 1 : undefined,
18420
- column: typeof colIndex === "number" ? colIndex + 1 : undefined,
18421
18423
  lineText: lineTextValue
18422
18424
  });
18423
18425
  }
@@ -18445,44 +18447,44 @@ ${block}
18445
18447
  type: new compiler.WrappedNodeExpr(entry.identifier)
18446
18448
  }));
18447
18449
  const meta = {
18448
- name: className,
18449
- type: { value: wrappedClass, type: wrappedClass },
18450
- typeArgumentCount: 0,
18451
- typeSourceSpan,
18450
+ animations: advancedMetadata.animations,
18451
+ changeDetection: decoratorMeta.changeDetection,
18452
+ controlCreate: extractControlCreate(classNode),
18453
+ declarationListEmitMode: declarations.length > 0 ? 1 : 0,
18454
+ declarations,
18455
+ defer: { dependenciesFn: null, mode: 1 },
18452
18456
  deps: null,
18453
- selector: decoratorMeta.selector,
18454
- queries: advancedMetadata.contentQueries,
18455
- viewQueries: advancedMetadata.viewQueries,
18457
+ encapsulation: decoratorMeta.encapsulation,
18458
+ exportAs: advancedMetadata.exportAs,
18459
+ hasDirectiveDependencies: declarations.length > 0,
18456
18460
  host: advancedMetadata.host,
18461
+ hostDirectives: advancedMetadata.hostDirectives,
18462
+ i18nUseExternalIds: projectDefaults.i18nUseExternalIds ?? false,
18463
+ inputs,
18464
+ isSignal: (hasSignalIO || advancedMetadata.contentQueries.some((q2) => q2.isSignal) || advancedMetadata.viewQueries.some((q2) => q2.isSignal)) && !hasDecoratorIO && !advancedMetadata.contentQueries.some((q2) => !q2.isSignal) && !advancedMetadata.viewQueries.some((q2) => !q2.isSignal),
18465
+ isStandalone: decoratorMeta.standalone,
18457
18466
  lifecycle: {
18458
18467
  usesOnChanges: classNode.members.some((m) => ts15.isMethodDeclaration(m) && m.name !== undefined && ts15.isIdentifier(m.name) && m.name.text === "ngOnChanges")
18459
18468
  },
18460
- inputs,
18469
+ name: className,
18461
18470
  outputs,
18462
- usesInheritance: false,
18463
- controlCreate: extractControlCreate(classNode),
18464
- exportAs: advancedMetadata.exportAs,
18465
18471
  providers: advancedMetadata.providers,
18466
- isStandalone: decoratorMeta.standalone,
18467
- isSignal: (hasSignalIO || advancedMetadata.contentQueries.some((q2) => q2.isSignal) || advancedMetadata.viewQueries.some((q2) => q2.isSignal)) && !hasDecoratorIO && !advancedMetadata.contentQueries.some((q2) => !q2.isSignal) && !advancedMetadata.viewQueries.some((q2) => !q2.isSignal),
18468
- hostDirectives: advancedMetadata.hostDirectives,
18472
+ queries: advancedMetadata.contentQueries,
18473
+ relativeContextFilePath: projectRelPath,
18474
+ relativeTemplatePath: null,
18475
+ selector: decoratorMeta.selector,
18476
+ styles,
18469
18477
  template: {
18470
- nodes: parsed.nodes,
18471
18478
  ngContentSelectors: parsed.ngContentSelectors ?? [],
18479
+ nodes: parsed.nodes,
18472
18480
  preserveWhitespaces: decoratorMeta.preserveWhitespaces
18473
18481
  },
18474
- declarations,
18475
- defer: { dependenciesFn: null, mode: 1 },
18476
- declarationListEmitMode: declarations.length > 0 ? 1 : 0,
18477
- styles,
18478
- encapsulation: decoratorMeta.encapsulation,
18479
- animations: advancedMetadata.animations,
18482
+ type: { type: wrappedClass, value: wrappedClass },
18483
+ typeArgumentCount: 0,
18484
+ typeSourceSpan,
18485
+ usesInheritance: false,
18480
18486
  viewProviders: advancedMetadata.viewProviders,
18481
- relativeContextFilePath: projectRelPath,
18482
- i18nUseExternalIds: projectDefaults.i18nUseExternalIds ?? false,
18483
- changeDetection: decoratorMeta.changeDetection,
18484
- relativeTemplatePath: null,
18485
- hasDirectiveDependencies: declarations.length > 0
18487
+ viewQueries: advancedMetadata.viewQueries
18486
18488
  };
18487
18489
  let compiled;
18488
18490
  try {
@@ -18490,20 +18492,20 @@ ${block}
18490
18492
  const bindingParser = compiler.makeBindingParser();
18491
18493
  compiled = compiler.compileComponentFromMetadata(meta, pool, bindingParser);
18492
18494
  const namespaceDependencies = [
18493
- { moduleName: "@angular/core", assignedName: "\u0275hmr0" }
18495
+ { assignedName: "\u0275hmr0", moduleName: "@angular/core" }
18494
18496
  ];
18495
18497
  const callback = compiler.compileHmrUpdateCallback([
18496
18498
  {
18497
- name: "\u0275cmp",
18498
18499
  initializer: compiled.expression,
18500
+ name: "\u0275cmp",
18499
18501
  statements: compiled.statements ?? []
18500
18502
  }
18501
18503
  ], pool.statements, {
18502
- type: wrappedClass,
18503
18504
  className,
18504
18505
  filePath: projectRelPath,
18506
+ localDependencies: [],
18505
18507
  namespaceDependencies,
18506
- localDependencies: []
18508
+ type: wrappedClass
18507
18509
  });
18508
18510
  const namespaceMap = new Map;
18509
18511
  for (const dep of namespaceDependencies) {
@@ -18606,7 +18608,7 @@ ${block}
18606
18608
  if (fnOpeningIdx >= 0 && (methodsBlock || depsDestructure)) {
18607
18609
  const insertAt = fnOpeningIdx + fnOpening.length;
18608
18610
  moduleText = moduleText.slice(0, insertAt) + depsDestructure + (methodsBlock ? `
18609
- ` + methodsBlock + `
18611
+ ${methodsBlock}
18610
18612
  ` : "") + moduleText.slice(insertAt);
18611
18613
  }
18612
18614
  if (methodsBlock) {
@@ -18674,10 +18676,10 @@ var init_fastHmrCompiler = __esm(() => {
18674
18676
  "ContentChildren"
18675
18677
  ]);
18676
18678
  SIGNAL_QUERY_TO_RUNTIME = {
18677
- viewChild: { isView: true, first: true },
18678
- viewChildren: { isView: true, first: false },
18679
- contentChild: { isView: false, first: true },
18680
- contentChildren: { isView: false, first: false }
18679
+ contentChild: { first: true, isView: false },
18680
+ contentChildren: { first: false, isView: false },
18681
+ viewChild: { first: true, isView: true },
18682
+ viewChildren: { first: false, isView: true }
18681
18683
  };
18682
18684
  childComponentInfoCache = new Map;
18683
18685
  INPUT_OUTPUT_DECORATORS = new Set(["Input", "Output"]);
@@ -20262,7 +20264,7 @@ ${content.slice(firstUseIdx)}`;
20262
20264
  };
20263
20265
  const tracePhase = async (name, fn2, metadata2) => {
20264
20266
  if (!traceEnabled)
20265
- return await fn2();
20267
+ return fn2();
20266
20268
  const phaseStart = performance.now();
20267
20269
  try {
20268
20270
  const result = await fn2();
@@ -21538,7 +21540,7 @@ ${content.slice(firstUseIdx)}`;
21538
21540
  }, build2 = async (config) => {
21539
21541
  const projectRoot = cwd();
21540
21542
  const buildPath = validateSafePath(config.buildDirectory ?? "build", projectRoot);
21541
- return await withBuildDirectoryLock(buildPath, () => buildUnlocked(config));
21543
+ return withBuildDirectoryLock(buildPath, () => buildUnlocked(config));
21542
21544
  };
21543
21545
  var init_build = __esm(() => {
21544
21546
  init_constants();
@@ -22242,7 +22244,7 @@ var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
22242
22244
  for (const ref of refs) {
22243
22245
  const refAbs = normalizePath(resolve31(componentDir, ref));
22244
22246
  const refDir = normalizePath(dirname21(refAbs));
22245
- if (refDir === angularRootNormalized || refDir.startsWith(angularRootNormalized + "/")) {
22247
+ if (refDir === angularRootNormalized || refDir.startsWith(`${angularRootNormalized}/`)) {
22246
22248
  continue;
22247
22249
  }
22248
22250
  out.add(refDir);
@@ -22892,10 +22894,10 @@ var ENTITY_DECORATORS, isAngularSourceFile = (file5) => file5.endsWith(".ts") ||
22892
22894
  }
22893
22895
  const entry = {
22894
22896
  className: node.name.text,
22897
+ extendsName,
22895
22898
  kind,
22896
22899
  styleUrls: [],
22897
- templateUrls: [],
22898
- extendsName
22900
+ templateUrls: []
22899
22901
  };
22900
22902
  const arg = expr.arguments[0];
22901
22903
  if (arg && ts16.isObjectLiteralExpression(arg) && kind === "component") {
@@ -23045,7 +23047,9 @@ var ENTITY_DECORATORS, isAngularSourceFile = (file5) => file5.endsWith(".ts") ||
23045
23047
  const bundle = { parentFile, resource };
23046
23048
  indexByRoot.set(userAngularRoot, bundle);
23047
23049
  return bundle;
23048
- }, getOrBuildResourceIndex = (userAngularRoot) => getOrBuildIndexes(userAngularRoot).resource, resolveDescendantsOfParent = (params) => {
23050
+ }, getOrBuildResourceIndex = (userAngularRoot) => getOrBuildIndexes(userAngularRoot).resource, invalidateResourceIndex = () => {
23051
+ indexByRoot.clear();
23052
+ }, resolveDescendantsOfParent = (params) => {
23049
23053
  const norm = safeNormalize(params.changedFilePath);
23050
23054
  let rootStat;
23051
23055
  try {
@@ -23057,15 +23061,13 @@ var ENTITY_DECORATORS, isAngularSourceFile = (file5) => file5.endsWith(".ts") ||
23057
23061
  return [];
23058
23062
  const bundle = getOrBuildIndexes(params.userAngularRoot);
23059
23063
  return bundle.parentFile.get(norm) ?? [];
23060
- }, invalidateResourceIndex = () => {
23061
- indexByRoot.clear();
23062
23064
  };
23063
23065
  var init_resolveOwningComponents = __esm(() => {
23064
23066
  ENTITY_DECORATORS = {
23065
23067
  Component: "component",
23066
23068
  Directive: "directive",
23067
- Pipe: "pipe",
23068
- Injectable: "service"
23069
+ Injectable: "service",
23070
+ Pipe: "pipe"
23069
23071
  };
23070
23072
  indexByRoot = new Map;
23071
23073
  });
@@ -23090,9 +23092,7 @@ var trySendMessage = (client2, messageStr) => {
23090
23092
  ...message,
23091
23093
  timestamp: Date.now()
23092
23094
  });
23093
- const shouldRemove = (client2) => {
23094
- return !trySendMessage(client2, messageStr);
23095
- };
23095
+ const shouldRemove = (client2) => !trySendMessage(client2, messageStr);
23096
23096
  const clientsToRemove = [];
23097
23097
  state.connectedClients.forEach((client2) => {
23098
23098
  if (shouldRemove(client2))
@@ -23573,8 +23573,8 @@ ${code}`;
23573
23573
  compilerOptions: {
23574
23574
  bindingMetadata: compiledScript.bindings,
23575
23575
  expressionPlugins: ["typescript"],
23576
- isCustomElement: (tag) => tag === "absolute-island",
23577
- prefixIdentifiers: true
23576
+ prefixIdentifiers: true,
23577
+ isCustomElement: (tag) => tag === "absolute-island"
23578
23578
  },
23579
23579
  filename: filePath,
23580
23580
  id: componentId,
@@ -23630,8 +23630,8 @@ ${code}`;
23630
23630
  const compiledScript = hasScript ? vueCompiler.compileScript(descriptor, {
23631
23631
  fs: {
23632
23632
  fileExists: existsSync33,
23633
- readFile: (file5) => existsSync33(file5) ? readFileSync28(file5, "utf-8") : undefined,
23634
- realpath: realpathSync3
23633
+ realpath: realpathSync3,
23634
+ readFile: (file5) => existsSync33(file5) ? readFileSync28(file5, "utf-8") : undefined
23635
23635
  },
23636
23636
  id: componentId,
23637
23637
  inlineTemplate: false
@@ -23842,9 +23842,9 @@ export default {};
23842
23842
  const { getFrameworkGeneratedDir: getFrameworkGeneratedDir2 } = await Promise.resolve().then(() => (init_generatedDir(), exports_generatedDir));
23843
23843
  const generatedAngularRoot = getFrameworkGeneratedDir2("angular").replace(/\\/g, "/");
23844
23844
  const normalized = filePath.replace(/\\/g, "/");
23845
- if (normalized.startsWith(generatedAngularRoot + "/") || normalized.startsWith(generatedAngularRoot)) {
23845
+ if (normalized.startsWith(`${generatedAngularRoot}/`) || normalized.startsWith(generatedAngularRoot)) {
23846
23846
  const tail = normalized.slice(generatedAngularRoot.length + 1);
23847
- const absoluteCandidate = "/" + tail.replace(/^\/+/, "");
23847
+ const absoluteCandidate = `/${tail.replace(/^\/+/, "")}`;
23848
23848
  const candidates = [
23849
23849
  absoluteCandidate,
23850
23850
  resolve37(projectRoot, tail)
@@ -24122,7 +24122,10 @@ __export(exports_hmrCompiler, {
24122
24122
  });
24123
24123
  import { dirname as dirname25, relative as relative16, resolve as resolve38 } from "path";
24124
24124
  import { performance as performance2 } from "perf_hooks";
24125
- var getApplyMetadataModule = async (encodedId) => {
24125
+ var encodeHmrComponentId = (absoluteFilePath, className) => {
24126
+ const projectRel = relative16(process.cwd(), absoluteFilePath).replace(/\\/g, "/");
24127
+ return `${projectRel}@${className}`;
24128
+ }, getApplyMetadataModule = async (encodedId) => {
24126
24129
  const decoded = decodeURIComponent(encodedId);
24127
24130
  const at2 = decoded.lastIndexOf("@");
24128
24131
  if (at2 === -1)
@@ -24151,9 +24154,6 @@ var getApplyMetadataModule = async (encodedId) => {
24151
24154
  return fast.moduleText;
24152
24155
  }
24153
24156
  return null;
24154
- }, encodeHmrComponentId = (absoluteFilePath, className) => {
24155
- const projectRel = relative16(process.cwd(), absoluteFilePath).replace(/\\/g, "/");
24156
- return `${projectRel}@${className}`;
24157
24157
  };
24158
24158
  var init_hmrCompiler = __esm(() => {
24159
24159
  init_logger();
@@ -24248,7 +24248,7 @@ var resolveRequestPathname = (request) => {
24248
24248
  }, buildHtmlShell = (headTag, bodyContent, indexPath, props) => {
24249
24249
  const propsScript = `window.__INITIAL_PROPS__=${JSON.stringify(props ?? {})};`;
24250
24250
  const indexImport = indexPath ? `<script type="module" src="${indexPath}"></script>` : "";
24251
- return `<!DOCTYPE html><html>${headTag}<body>` + `<div id="ember-root">${bodyContent}</div>` + `<script>${propsScript}</script>` + indexImport + `</body></html>`;
24251
+ return `<!DOCTYPE html><html>${headTag}<body>` + `<div id="ember-root">${bodyContent}</div>` + `<script>${propsScript}</script>${indexImport}</body></html>`;
24252
24252
  }, handleEmberPageRequest = async (input) => {
24253
24253
  const { indexPath, pagePath, headTag } = input;
24254
24254
  const userProps = input.props;
@@ -24448,7 +24448,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
24448
24448
  }
24449
24449
  return { ...parsed, framework: detectedFw };
24450
24450
  }, isValidDeletedAffectedFile = (affectedFile, deletedPathResolved, processedFiles) => affectedFile !== deletedPathResolved && !processedFiles.has(affectedFile) && existsSync34(affectedFile), FRAMEWORK_DIR_KEYS_FOR_CLEANUP, removeStaleGenerated = (state, deletedFile) => {
24451
- const config = state.config;
24451
+ const { config } = state;
24452
24452
  const cwd2 = process.cwd();
24453
24453
  const absDeleted = resolve41(deletedFile).replace(/\\/g, "/");
24454
24454
  for (const { configKey, framework } of FRAMEWORK_DIR_KEYS_FOR_CLEANUP) {
@@ -24619,7 +24619,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
24619
24619
  }
24620
24620
  enqueueAngularOwningComponentForStyle(state, changedStylePath);
24621
24621
  }, enqueueAngularOwningComponentForStyle = (state, changedStylePath) => {
24622
- const angularDir = state.resolvedPaths.angularDir;
24622
+ const { angularDir } = state.resolvedPaths;
24623
24623
  if (!angularDir)
24624
24624
  return;
24625
24625
  const visited = new Set;
@@ -24658,17 +24658,17 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
24658
24658
  if (!hasFileChanged(filePath, currentHash, state.fileHashes)) {
24659
24659
  return;
24660
24660
  }
24661
- const publicDir = state.resolvedPaths.publicDir;
24662
- const assetsDir = state.resolvedPaths.assetsDir;
24661
+ const { publicDir } = state.resolvedPaths;
24662
+ const { assetsDir } = state.resolvedPaths;
24663
24663
  const handleStaticMirror = async (sourceDir, urlPrefix) => {
24664
24664
  const absSource = resolve41(filePath);
24665
24665
  const normalizedSource = absSource.replace(/\\/g, "/");
24666
24666
  const normalizedDir = sourceDir.replace(/\\/g, "/");
24667
- if (!normalizedSource.startsWith(normalizedDir + "/"))
24667
+ if (!normalizedSource.startsWith(`${normalizedDir}/`))
24668
24668
  return false;
24669
24669
  try {
24670
24670
  const relFromDir = normalizedSource.slice(normalizedDir.length + 1);
24671
- const buildDir = state.resolvedPaths.buildDir;
24671
+ const { buildDir } = state.resolvedPaths;
24672
24672
  const destPath = resolve41(buildDir, urlPrefix ? `${urlPrefix}/${relFromDir}` : relFromDir);
24673
24673
  const { mkdir: mkdir8, copyFile, readFile: readFile6 } = await import("fs/promises");
24674
24674
  const { dirname: dirname27 } = await import("path");
@@ -24698,7 +24698,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
24698
24698
  invalidate(resolve41(filePath));
24699
24699
  const relPath = relative17(process.cwd(), filePath);
24700
24700
  logHmrUpdate(relPath);
24701
- const angularDir = state.resolvedPaths.angularDir;
24701
+ const { angularDir } = state.resolvedPaths;
24702
24702
  let hasAngularDependent = false;
24703
24703
  if (angularDir && state.dependencyGraph) {
24704
24704
  try {
@@ -24938,8 +24938,8 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
24938
24938
  createStylePreprocessorPlugin(getStyleTransformConfig(state.config)),
24939
24939
  createAngularHmrInjectionPlugin2({
24940
24940
  generatedAngularRoot,
24941
- userAngularRoot,
24942
- projectRoot: process.cwd()
24941
+ projectRoot: process.cwd(),
24942
+ userAngularRoot
24943
24943
  })
24944
24944
  ],
24945
24945
  root: clientRoot,
@@ -25060,7 +25060,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
25060
25060
  if (owners.length === 0 && (editedFile.endsWith(".ts") || editedFile.endsWith(".json")) && !editedFile.endsWith(".d.ts")) {
25061
25061
  const normalized = editedFile.replace(/\\/g, "/");
25062
25062
  const angularDirAbs = resolve41(angularDir).replace(/\\/g, "/");
25063
- if (normalized.startsWith(angularDirAbs + "/")) {
25063
+ if (normalized.startsWith(`${angularDirAbs}/`)) {
25064
25064
  return {
25065
25065
  kind: "rebootstrap",
25066
25066
  reason: `non-decorated angular file edited (${editedFile}) \u2014 consumers may hold stale resolved values`,
@@ -25113,9 +25113,9 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
25113
25113
  }
25114
25114
  }
25115
25115
  const breakdown = {
25116
+ compileMs: Math.round(totalCompileMs),
25116
25117
  importsMs: Math.round(importsMs),
25117
- resolveMs: Math.round(totalResolveMs),
25118
- compileMs: Math.round(totalCompileMs)
25118
+ resolveMs: Math.round(totalResolveMs)
25119
25119
  };
25120
25120
  if (rebootstrapClassName !== null) {
25121
25121
  return {
@@ -28150,7 +28150,7 @@ import { dirname as dirname28, join as join49, resolve as resolve46 } from "path
28150
28150
  var ATOMIC_RECOVERY_WINDOW_MS = 1000, RELOAD_DEBOUNCE_MS = 80, ATOMIC_WRITE_TEMP_PATTERNS2, isAtomicWriteTemp = (filename) => filename.endsWith(".tmp") || filename.includes(".tmp.") || filename.endsWith("~") || filename.startsWith(".#") || ATOMIC_WRITE_TEMP_PATTERNS2.some((re2) => re2.test(filename)), startServerEntryWatcher = () => {
28151
28151
  if (globalThis.__absoluteEntryWatcherStarted)
28152
28152
  return;
28153
- const main = Bun.main;
28153
+ const { main } = Bun;
28154
28154
  if (!main || !existsSync39(main))
28155
28155
  return;
28156
28156
  globalThis.__absoluteEntryWatcherStarted = true;
@@ -28178,7 +28178,7 @@ var ATOMIC_RECOVERY_WINDOW_MS = 1000, RELOAD_DEBOUNCE_MS = 80, ATOMIC_WRITE_TEMP
28178
28178
  if (hmrState2) {
28179
28179
  const { broadcastToClients: broadcastToClients2 } = await Promise.resolve().then(() => (init_webSocket(), exports_webSocket));
28180
28180
  broadcastToClients2(hmrState2, {
28181
- data: { entryPath, cause },
28181
+ data: { cause, entryPath },
28182
28182
  type: "server-entry-reloaded"
28183
28183
  });
28184
28184
  }
@@ -28274,7 +28274,6 @@ var ATOMIC_RECOVERY_WINDOW_MS = 1000, RELOAD_DEBOUNCE_MS = 80, ATOMIC_WRITE_TEMP
28274
28274
  }
28275
28275
  if (dir === configDir2 && filename === configBase) {
28276
28276
  scheduleConfigChange(filename);
28277
- return;
28278
28277
  }
28279
28278
  };
28280
28279
  const entryWatcher = watch2(entryDir, { recursive: false }, (event, file5) => handleEvent(entryDir, event, file5));
@@ -28866,6 +28865,14 @@ var derivePageName = (pagePath) => {
28866
28865
  return toPascal(name);
28867
28866
  };
28868
28867
  var normalizeConventionPageName = (name) => toPascal(name).replace(/\d+$/, "");
28868
+ var hasErrorConvention = (framework) => {
28869
+ const conventions2 = getMap()[framework];
28870
+ if (!conventions2)
28871
+ return false;
28872
+ if (conventions2.defaults?.error)
28873
+ return true;
28874
+ return Object.values(conventions2.pages ?? {}).some((page) => Boolean(page.error));
28875
+ };
28869
28876
  var resolveErrorConventionPath = (framework, pageName) => {
28870
28877
  const conventions2 = getMap()[framework];
28871
28878
  if (!conventions2)
@@ -28882,14 +28889,6 @@ var resolveErrorConventionPath = (framework, pageName) => {
28882
28889
  return conventions2.defaults?.error;
28883
28890
  };
28884
28891
  var resolveNotFoundConventionPath = (framework) => getMap()[framework]?.defaults?.notFound;
28885
- var hasErrorConvention = (framework) => {
28886
- const conventions2 = getMap()[framework];
28887
- if (!conventions2)
28888
- return false;
28889
- if (conventions2.defaults?.error)
28890
- return true;
28891
- return Object.values(conventions2.pages ?? {}).some((page) => Boolean(page.error));
28892
- };
28893
28892
  var setConventions = (map) => {
28894
28893
  Reflect.set(globalThis, CONVENTIONS_KEY, map);
28895
28894
  };
@@ -28902,7 +28901,7 @@ var buildErrorProps = (error) => {
28902
28901
  ...isDev() && error.stack ? { stack: error.stack } : {}
28903
28902
  };
28904
28903
  }
28905
- return { name: "Error", message: String(error) };
28904
+ return { message: String(error), name: "Error" };
28906
28905
  };
28907
28906
  var renderReactError = async (conventionPath, errorProps) => {
28908
28907
  const { createElement } = await import("react");
@@ -29744,8 +29743,8 @@ var networking = (app) => {
29744
29743
  app.compile();
29745
29744
  } catch {}
29746
29745
  liveServer.reload({
29747
- fetch: (request) => app.fetch(request),
29748
- routes: {}
29746
+ routes: {},
29747
+ fetch: (request) => app.fetch(request)
29749
29748
  });
29750
29749
  return app;
29751
29750
  }
@@ -29807,6 +29806,7 @@ var defineConfig = (config) => config;
29807
29806
  var defineRenderErrorPage = (fn2) => fn2;
29808
29807
  var defineRenderNotFoundPage = (fn2) => fn2;
29809
29808
  // src/utils/jsonLd.ts
29809
+ var jsonLd2 = (schema) => `<script type="application/ld+json">${serializeJsonLd(schema)}</script>`;
29810
29810
  var serializeJsonLd = (schema) => {
29811
29811
  const schemaOrgContext = "https://schema.org";
29812
29812
  const data = Array.isArray(schema) ? schema.map((s2) => ({
@@ -29815,7 +29815,6 @@ var serializeJsonLd = (schema) => {
29815
29815
  })) : { "@context": schemaOrgContext, ...schema };
29816
29816
  return JSON.stringify(data);
29817
29817
  };
29818
- var jsonLd2 = (schema) => `<script type="application/ld+json">${serializeJsonLd(schema)}</script>`;
29819
29818
 
29820
29819
  // src/utils/generateHeadElement.ts
29821
29820
  var renderRobotsContent = (robots) => {
@@ -36286,5 +36285,5 @@ export {
36286
36285
  ANGULAR_INIT_TIMEOUT_MS
36287
36286
  };
36288
36287
 
36289
- //# debugId=C5D7127FA2204C7B64756E2164756E21
36288
+ //# debugId=B71C10969ACA5EA464756E2164756E21
36290
36289
  //# sourceMappingURL=index.js.map