@absolutejs/absolute 0.19.0-beta.841 → 0.19.0-beta.843
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/build.js +12 -8
- package/dist/build.js.map +8 -8
- package/dist/cli/index.js +3 -2
- package/dist/dev/client/errorOverlay.ts +5 -7
- package/dist/index.js +12 -8
- package/dist/index.js.map +8 -8
- package/dist/react/index.js.map +2 -2
- package/dist/react/server.js.map +2 -2
- package/dist/svelte/router/Router.svelte +1 -3
- package/dist/vue/index.js.map +2 -2
- package/dist/vue/server.js.map +2 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -951,7 +951,7 @@ var escapeRegex = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jsRewrite
|
|
|
951
951
|
const namedImportRe = new RegExp(`\\bimport\\s*\\{[^}]*\\b${ident}\\b[^}]*\\}\\s*from\\b`);
|
|
952
952
|
if (namedImportRe.test(content))
|
|
953
953
|
continue;
|
|
954
|
-
const importPathRe = /from\s
|
|
954
|
+
const importPathRe = /(?:from\s+|import\s*)["']([^"']+)["']/g;
|
|
955
955
|
let pathMatch;
|
|
956
956
|
let sourcePath;
|
|
957
957
|
while ((pathMatch = importPathRe.exec(content)) !== null) {
|
|
@@ -961,7 +961,8 @@ var escapeRegex = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jsRewrite
|
|
|
961
961
|
const base = p.split("/").pop()?.replace(/\.[mc]?js$/, "");
|
|
962
962
|
if (!base)
|
|
963
963
|
continue;
|
|
964
|
-
|
|
964
|
+
const normalized = base.startsWith("_") ? base.slice(1) : base;
|
|
965
|
+
if (normalized === ident || normalized.endsWith(`_${ident}`)) {
|
|
965
966
|
sourcePath = p;
|
|
966
967
|
break;
|
|
967
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
|
|
package/dist/index.js
CHANGED
|
@@ -13333,11 +13333,13 @@ var init_buildReactVendor = __esm(() => {
|
|
|
13333
13333
|
var RESERVED_KEYS, VALID_IDENTIFIER, generateVendorEntrySource = async (specifier) => {
|
|
13334
13334
|
const mod = await import(specifier);
|
|
13335
13335
|
const exportKeys = Object.keys(mod).filter((key) => !RESERVED_KEYS.has(key) && VALID_IDENTIFIER.test(key));
|
|
13336
|
-
const
|
|
13336
|
+
const localBindings = exportKeys.map((key, i) => `const __abs_${i} = __abs_ns[${JSON.stringify(key)}];`).join(`
|
|
13337
|
+
`);
|
|
13338
|
+
const reExportClause = exportKeys.length > 0 ? `export { ${exportKeys.map((key, i) => `__abs_${i} as ${key}`).join(", ")} };
|
|
13337
13339
|
` : "";
|
|
13338
13340
|
return `import * as __abs_ns from '${specifier}';
|
|
13339
|
-
|
|
13340
|
-
` +
|
|
13341
|
+
` + (localBindings ? `${localBindings}
|
|
13342
|
+
` : "") + reExportClause + `export default __abs_ns.default;
|
|
13341
13343
|
export const __ABSOLUTE_VENDOR_NAMESPACE__ = __abs_ns;
|
|
13342
13344
|
`;
|
|
13343
13345
|
};
|
|
@@ -13347,7 +13349,7 @@ var init_vendorEntrySource = __esm(() => {
|
|
|
13347
13349
|
"__esModule",
|
|
13348
13350
|
"__ABSOLUTE_VENDOR_NAMESPACE__"
|
|
13349
13351
|
]);
|
|
13350
|
-
VALID_IDENTIFIER = /^[$
|
|
13352
|
+
VALID_IDENTIFIER = /^[$_\p{L}][$_\p{L}\p{N}]*$/u;
|
|
13351
13353
|
});
|
|
13352
13354
|
|
|
13353
13355
|
// src/build/buildAngularVendor.ts
|
|
@@ -13777,7 +13779,7 @@ var escapeRegex2 = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jsRewrit
|
|
|
13777
13779
|
const namedImportRe = new RegExp(`\\bimport\\s*\\{[^}]*\\b${ident}\\b[^}]*\\}\\s*from\\b`);
|
|
13778
13780
|
if (namedImportRe.test(content))
|
|
13779
13781
|
continue;
|
|
13780
|
-
const importPathRe = /from\s
|
|
13782
|
+
const importPathRe = /(?:from\s+|import\s*)["']([^"']+)["']/g;
|
|
13781
13783
|
let pathMatch;
|
|
13782
13784
|
let sourcePath;
|
|
13783
13785
|
while ((pathMatch = importPathRe.exec(content)) !== null) {
|
|
@@ -13787,7 +13789,8 @@ var escapeRegex2 = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jsRewrit
|
|
|
13787
13789
|
const base = p2.split("/").pop()?.replace(/\.[mc]?js$/, "");
|
|
13788
13790
|
if (!base)
|
|
13789
13791
|
continue;
|
|
13790
|
-
|
|
13792
|
+
const normalized = base.startsWith("_") ? base.slice(1) : base;
|
|
13793
|
+
if (normalized === ident || normalized.endsWith(`_${ident}`)) {
|
|
13791
13794
|
sourcePath = p2;
|
|
13792
13795
|
break;
|
|
13793
13796
|
}
|
|
@@ -18949,7 +18952,8 @@ var toSafeFileName6 = (specifier) => {
|
|
|
18949
18952
|
await Bun.write(entryPath, await generateVendorEntrySource(specifier));
|
|
18950
18953
|
return { entryPath, specifier };
|
|
18951
18954
|
}));
|
|
18952
|
-
const
|
|
18955
|
+
const isPrefixOrEqual = (candidate, current) => current === candidate || current.startsWith(`${candidate}/`);
|
|
18956
|
+
const otherSpecsFor = (current) => specifiers.filter((spec) => !isPrefixOrEqual(spec, current));
|
|
18953
18957
|
const results = await Promise.all(entries.map(({ entryPath, specifier }) => bunBuild9({
|
|
18954
18958
|
entrypoints: [entryPath],
|
|
18955
18959
|
external: [...FRAMEWORK_EXTERNALS, ...otherSpecsFor(specifier)],
|
|
@@ -27943,5 +27947,5 @@ export {
|
|
|
27943
27947
|
ANGULAR_INIT_TIMEOUT_MS
|
|
27944
27948
|
};
|
|
27945
27949
|
|
|
27946
|
-
//# debugId=
|
|
27950
|
+
//# debugId=C86F0B52E78282DE64756E2164756E21
|
|
27947
27951
|
//# sourceMappingURL=index.js.map
|