@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.
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +57 -54
- package/dist/angular/index.js.map +5 -5
- package/dist/angular/server.js +57 -54
- package/dist/angular/server.js.map +5 -5
- package/dist/build.js +1618 -429
- package/dist/build.js.map +24 -16
- package/dist/cli/index.js +4 -2
- package/dist/dev/client/errorOverlay.ts +5 -7
- package/dist/index.js +1671 -477
- package/dist/index.js.map +26 -18
- package/dist/react/index.js +57 -53
- package/dist/react/index.js.map +6 -6
- package/dist/react/server.js +57 -53
- package/dist/react/server.js.map +6 -6
- package/dist/src/build/buildEmberVendor.d.ts +24 -0
- package/dist/src/build/compileEmber.d.ts +43 -0
- package/dist/src/build/vendorEntrySource.d.ts +1 -26
- package/dist/src/build/vueAutoRouterTransform.d.ts +1 -0
- package/dist/src/core/devVendorPaths.d.ts +2 -0
- package/dist/src/dev/configResolver.d.ts +1 -0
- package/dist/src/dev/pathUtils.d.ts +1 -1
- package/dist/src/ember/browser.d.ts +24 -0
- package/dist/src/ember/index.d.ts +2 -0
- package/dist/src/ember/pageHandler.d.ts +35 -0
- package/dist/src/ember/server.d.ts +2 -0
- package/dist/src/utils/loadConfig.d.ts +1 -0
- package/dist/src/vue/browser.d.ts +2 -0
- package/dist/src/vue/defineVuePage.d.ts +5 -0
- package/dist/src/vue/index.d.ts +2 -0
- package/dist/svelte/index.js +57 -53
- package/dist/svelte/index.js.map +5 -5
- package/dist/svelte/router/Router.svelte +1 -3
- package/dist/svelte/server.js +57 -53
- package/dist/svelte/server.js.map +5 -5
- package/dist/types/build.d.ts +1 -0
- package/dist/types/conventions.d.ts +1 -0
- package/dist/types/ember.d.ts +41 -0
- package/dist/types/island.d.ts +3 -2
- package/dist/types/vue.d.ts +28 -1
- package/dist/vue/browser.js +4 -1
- package/dist/vue/browser.js.map +5 -4
- package/dist/vue/index.js +62 -53
- package/dist/vue/index.js.map +7 -6
- package/dist/vue/server.js +59 -53
- package/dist/vue/server.js.map +6 -6
- 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
|
|
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
|
-
|
|
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(
|
|
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
|
|