@absolutejs/absolute 0.19.0-beta.840 → 0.19.0-beta.842

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 (48) hide show
  1. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  2. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  3. package/dist/angular/index.js +57 -54
  4. package/dist/angular/index.js.map +5 -5
  5. package/dist/angular/server.js +57 -54
  6. package/dist/angular/server.js.map +5 -5
  7. package/dist/build.js +1618 -429
  8. package/dist/build.js.map +24 -16
  9. package/dist/cli/index.js +4 -2
  10. package/dist/dev/client/errorOverlay.ts +5 -7
  11. package/dist/index.js +1671 -477
  12. package/dist/index.js.map +26 -18
  13. package/dist/react/index.js +57 -53
  14. package/dist/react/index.js.map +6 -6
  15. package/dist/react/server.js +57 -53
  16. package/dist/react/server.js.map +6 -6
  17. package/dist/src/build/buildEmberVendor.d.ts +24 -0
  18. package/dist/src/build/compileEmber.d.ts +43 -0
  19. package/dist/src/build/vendorEntrySource.d.ts +1 -26
  20. package/dist/src/build/vueAutoRouterTransform.d.ts +1 -0
  21. package/dist/src/core/devVendorPaths.d.ts +2 -0
  22. package/dist/src/dev/configResolver.d.ts +1 -0
  23. package/dist/src/dev/pathUtils.d.ts +1 -1
  24. package/dist/src/ember/browser.d.ts +24 -0
  25. package/dist/src/ember/index.d.ts +2 -0
  26. package/dist/src/ember/pageHandler.d.ts +35 -0
  27. package/dist/src/ember/server.d.ts +2 -0
  28. package/dist/src/utils/loadConfig.d.ts +1 -0
  29. package/dist/src/vue/browser.d.ts +2 -0
  30. package/dist/src/vue/defineVuePage.d.ts +5 -0
  31. package/dist/src/vue/index.d.ts +2 -0
  32. package/dist/svelte/index.js +57 -53
  33. package/dist/svelte/index.js.map +5 -5
  34. package/dist/svelte/router/Router.svelte +1 -3
  35. package/dist/svelte/server.js +57 -53
  36. package/dist/svelte/server.js.map +5 -5
  37. package/dist/types/build.d.ts +1 -0
  38. package/dist/types/conventions.d.ts +1 -0
  39. package/dist/types/ember.d.ts +41 -0
  40. package/dist/types/island.d.ts +3 -2
  41. package/dist/types/vue.d.ts +28 -1
  42. package/dist/vue/browser.js +4 -1
  43. package/dist/vue/browser.js.map +5 -4
  44. package/dist/vue/index.js +62 -53
  45. package/dist/vue/index.js.map +7 -6
  46. package/dist/vue/server.js +59 -53
  47. package/dist/vue/server.js.map +6 -6
  48. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -286,6 +286,7 @@ var init_loadConfig = __esm(() => {
286
286
  "cwd",
287
287
  "dependsOn",
288
288
  "dev",
289
+ "emberDirectory",
289
290
  "entry",
290
291
  "env",
291
292
  "htmlDirectory",
@@ -950,7 +951,7 @@ var escapeRegex = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jsRewrite
950
951
  const namedImportRe = new RegExp(`\\bimport\\s*\\{[^}]*\\b${ident}\\b[^}]*\\}\\s*from\\b`);
951
952
  if (namedImportRe.test(content))
952
953
  continue;
953
- const importPathRe = /from\s+["']([^"']+)["']/g;
954
+ const importPathRe = /(?:from\s+|import\s*)["']([^"']+)["']/g;
954
955
  let pathMatch;
955
956
  let sourcePath;
956
957
  while ((pathMatch = importPathRe.exec(content)) !== null) {
@@ -960,7 +961,8 @@ var escapeRegex = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jsRewrite
960
961
  const base = p.split("/").pop()?.replace(/\.[mc]?js$/, "");
961
962
  if (!base)
962
963
  continue;
963
- if (base === ident || base.endsWith(`_${ident}`)) {
964
+ const normalized = base.startsWith("_") ? base.slice(1) : base;
965
+ if (normalized === ident || normalized.endsWith(`_${ident}`)) {
964
966
  sourcePath = p;
965
967
  break;
966
968
  }
@@ -190,9 +190,7 @@ const buildDiagnosticsSection = () => {
190
190
  lines.push(`Loaded chunks (${scripts.length}):`);
191
191
  for (const url of scripts) {
192
192
  // Strip origin so the chunk hash is the focal point.
193
- lines.push(
194
- ` ${url.replace(window.location.origin, '') || url}`
195
- );
193
+ lines.push(` ${url.replace(window.location.origin, '') || url}`);
196
194
  }
197
195
  }
198
196
 
@@ -222,7 +220,9 @@ const buildErrorMessageSection = (message: string) => {
222
220
 
223
221
  const formatErrorForCopy = (opts: ErrorOverlayOptions) => {
224
222
  const lines: string[] = [];
225
- lines.push(`# ${opts.kind === 'runtime' ? 'Runtime' : 'Compilation'} error`);
223
+ lines.push(
224
+ `# ${opts.kind === 'runtime' ? 'Runtime' : 'Compilation'} error`
225
+ );
226
226
  if (opts.framework) lines.push(`Framework: ${opts.framework}`);
227
227
  lines.push('');
228
228
  lines.push('## Message');
@@ -254,9 +254,7 @@ const formatErrorForCopy = (opts: ErrorOverlayOptions) => {
254
254
  lines.push('');
255
255
  lines.push(`Loaded chunks (${scripts.length}):`);
256
256
  for (const url of scripts) {
257
- lines.push(
258
- ` ${url.replace(window.location.origin, '') || url}`
259
- );
257
+ lines.push(` ${url.replace(window.location.origin, '') || url}`);
260
258
  }
261
259
  }
262
260