@absolutejs/absolute 0.19.0-beta.383 → 0.19.0-beta.385
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/index.js +2 -2
- package/dist/angular/index.js.map +1 -1
- package/dist/angular/server.js +2 -2
- package/dist/angular/server.js.map +1 -1
- package/dist/build.js +4 -7
- package/dist/build.js.map +4 -4
- package/dist/index.js +4 -7
- package/dist/index.js.map +4 -4
- package/dist/svelte/index.js +2 -3
- package/dist/svelte/index.js.map +3 -3
- package/dist/svelte/server.js +2 -3
- package/dist/svelte/server.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -172329,8 +172329,7 @@ var SVELTE_PAGE_ROOT_ID = "__absolute_svelte_root__", renderToReadableStream = a
|
|
|
172329
172329
|
try {
|
|
172330
172330
|
const { render } = await import("svelte/server");
|
|
172331
172331
|
const rendered = typeof props === "undefined" ? await render(component) : await render(component, { props });
|
|
172332
|
-
const { head
|
|
172333
|
-
const head = rawHead.replace(/(<!--[a-z0-9]+-->)([\s\S]*?)(<!---->)\s*(<title>[\s\S]*?<\/title>)/, "$1$4$2$3");
|
|
172332
|
+
const { head, body } = rendered;
|
|
172334
172333
|
const nonceAttr = nonce ? ` nonce="${nonce}"` : "";
|
|
172335
172334
|
const scripts = (bootstrapScriptContent ? `<script${nonceAttr}>${escapeScriptContent(bootstrapScriptContent)}</script>` : "") + bootstrapScripts.map((src) => `<script${nonceAttr} src="${src}"></script>`).join("") + bootstrapModules.map((src) => `<script${nonceAttr} type="module" src="${src}"></script>`).join("");
|
|
172336
172335
|
const encoder = new TextEncoder;
|
|
@@ -173232,7 +173231,7 @@ ${registrations}
|
|
|
173232
173231
|
({ tsLibDir } = cached);
|
|
173233
173232
|
cached.lastUsed = Date.now();
|
|
173234
173233
|
} else {
|
|
173235
|
-
const tsPath = __require.resolve("typescript");
|
|
173234
|
+
const tsPath = __require.resolve("/home/alexkahn/abs/absolutejs/node_modules/typescript/lib/typescript.js");
|
|
173236
173235
|
const tsRootDir = dirname9(tsPath);
|
|
173237
173236
|
tsLibDir = tsRootDir.endsWith("lib") ? tsRootDir : resolve18(tsRootDir, "lib");
|
|
173238
173237
|
const config = readConfiguration("./tsconfig.json");
|
|
@@ -174232,9 +174231,7 @@ var isDev2, collectConventionSourceFiles = (entry) => {
|
|
|
174232
174231
|
const indexFile = join18(svelteIndexDir, "pages", `${name}.js`);
|
|
174233
174232
|
if (!existsSync16(indexFile))
|
|
174234
174233
|
continue;
|
|
174235
|
-
|
|
174236
|
-
const srcRel = relative9(process.cwd(), resolve19(entry)).replace(/\\/g, "/");
|
|
174237
|
-
content = content.replace(/import\s+Component\s+from\s+['"]([^'"]+)['"]/, `import Component from "/@src/${srcRel}"`);
|
|
174234
|
+
const content = readFileSync10(indexFile, "utf-8");
|
|
174238
174235
|
writeFileSync7(join18(devIndexDir, `${name}.svelte.js`), content);
|
|
174239
174236
|
}
|
|
174240
174237
|
}, copyVueDevIndexes = (vueDir, vuePagesPath, vueEntries, devIndexDir) => {
|
|
@@ -187484,5 +187481,5 @@ export {
|
|
|
187484
187481
|
ANGULAR_INIT_TIMEOUT_MS
|
|
187485
187482
|
};
|
|
187486
187483
|
|
|
187487
|
-
//# debugId=
|
|
187484
|
+
//# debugId=A0906D9B6FC12A5964756E2164756E21
|
|
187488
187485
|
//# sourceMappingURL=index.js.map
|