@absolutejs/absolute 0.19.0-beta.990 → 0.19.0-beta.991
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/index.js
CHANGED
|
@@ -13432,14 +13432,6 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
13432
13432
|
const serverCode = assembleModule(generateRenderFunction(true), "ssrRender", false) + islandMetadataExports;
|
|
13433
13433
|
const clientOutputPath = join28(outputDirs.client, `${relativeWithoutExtension}.js`);
|
|
13434
13434
|
const serverOutputPath = join28(outputDirs.server, `${relativeWithoutExtension}.js`);
|
|
13435
|
-
const relDir = dirname15(relativeFilePath);
|
|
13436
|
-
const relDepth = relDir === "." ? 0 : relDir.split("/").length;
|
|
13437
|
-
const adjustImports = (code) => code.replace(/(from\s+['"])(\.\.\/(?:\.\.\/)*)/g, (_2, prefix, dots) => {
|
|
13438
|
-
const upCount = dots.split("/").length - 1;
|
|
13439
|
-
if (upCount <= relDepth)
|
|
13440
|
-
return `${prefix}${dots}`;
|
|
13441
|
-
return `${prefix}../../${dots}`;
|
|
13442
|
-
});
|
|
13443
13435
|
const rewritePackageImports = (code, outputPath, mode) => {
|
|
13444
13436
|
let result2 = code;
|
|
13445
13437
|
for (const [bareImport, paths] of packageImportRewrites) {
|
|
@@ -13453,8 +13445,8 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
13453
13445
|
};
|
|
13454
13446
|
await mkdir5(dirname15(clientOutputPath), { recursive: true });
|
|
13455
13447
|
await mkdir5(dirname15(serverOutputPath), { recursive: true });
|
|
13456
|
-
const clientFinal = rewritePackageImports(
|
|
13457
|
-
const serverFinal = rewritePackageImports(
|
|
13448
|
+
const clientFinal = rewritePackageImports(clientCode, clientOutputPath, "client");
|
|
13449
|
+
const serverFinal = rewritePackageImports(serverCode, serverOutputPath, "server");
|
|
13458
13450
|
const inlineSourceMapFor = (finalContent) => {
|
|
13459
13451
|
if (!compiledScript.map || !hasScript)
|
|
13460
13452
|
return "";
|
|
@@ -35666,5 +35658,5 @@ export {
|
|
|
35666
35658
|
ANGULAR_INIT_TIMEOUT_MS
|
|
35667
35659
|
};
|
|
35668
35660
|
|
|
35669
|
-
//# debugId=
|
|
35661
|
+
//# debugId=87E299E373C2A6F364756E2164756E21
|
|
35670
35662
|
//# sourceMappingURL=index.js.map
|