@absolutejs/absolute 0.19.0-beta.392 → 0.19.0-beta.393
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 +7 -20
- package/dist/build.js.map +4 -4
- package/dist/index.js +7 -20
- package/dist/index.js.map +4 -4
- package/dist/src/utils/cleanup.d.ts +1 -2
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -171581,7 +171581,6 @@ import { rm as rm3 } from "fs/promises";
|
|
|
171581
171581
|
import { join as join10 } from "path";
|
|
171582
171582
|
var cleanup = async ({
|
|
171583
171583
|
angularDir,
|
|
171584
|
-
preserveSvelteGenerated = false,
|
|
171585
171584
|
reactDir,
|
|
171586
171585
|
svelteDir,
|
|
171587
171586
|
vueDir
|
|
@@ -171595,7 +171594,7 @@ var cleanup = async ({
|
|
|
171595
171594
|
force: true,
|
|
171596
171595
|
recursive: true
|
|
171597
171596
|
}) : undefined,
|
|
171598
|
-
svelteDir ?
|
|
171597
|
+
svelteDir ? rm3(join10(svelteDir, "generated"), {
|
|
171599
171598
|
force: true,
|
|
171600
171599
|
recursive: true
|
|
171601
171600
|
}) : undefined,
|
|
@@ -172670,7 +172669,7 @@ ${registrations}
|
|
|
172670
172669
|
({ tsLibDir } = cached);
|
|
172671
172670
|
cached.lastUsed = Date.now();
|
|
172672
172671
|
} else {
|
|
172673
|
-
const tsPath = __require.resolve("
|
|
172672
|
+
const tsPath = __require.resolve("typescript");
|
|
172674
172673
|
const tsRootDir = dirname8(tsPath);
|
|
172675
172674
|
tsLibDir = tsRootDir.endsWith("lib") ? tsRootDir : resolve15(tsRootDir, "lib");
|
|
172676
172675
|
const config = readConfiguration("./tsconfig.json");
|
|
@@ -173671,11 +173670,8 @@ var isDev, collectConventionSourceFiles = (entry) => {
|
|
|
173671
173670
|
if (!existsSync16(indexFile))
|
|
173672
173671
|
continue;
|
|
173673
173672
|
let content = readFileSync9(indexFile, "utf-8");
|
|
173674
|
-
|
|
173675
|
-
|
|
173676
|
-
const importUrl = `/@src/${relative9(process.cwd(), resolvedImport).replace(/\\/g, "/")}`;
|
|
173677
|
-
return `import Component from ${JSON.stringify(importUrl)}`;
|
|
173678
|
-
});
|
|
173673
|
+
const srcRel = relative9(process.cwd(), resolve16(entry)).replace(/\\/g, "/");
|
|
173674
|
+
content = content.replace(/import\s+Component\s+from\s+['"]([^'"]+)['"]/, `import Component from "/@src/${srcRel}"`);
|
|
173679
173675
|
writeFileSync7(join18(devIndexDir, `${name}.svelte.js`), content);
|
|
173680
173676
|
}
|
|
173681
173677
|
}, copyVueDevIndexes = (vueDir, vuePagesPath, vueEntries, devIndexDir) => {
|
|
@@ -174104,8 +174100,8 @@ ${content.slice(firstUseIdx)}`;
|
|
|
174104
174100
|
].filter((dir) => Boolean(dir));
|
|
174105
174101
|
const urlReferencedFiles = await scanWorkerReferences(allFrameworkDirs);
|
|
174106
174102
|
const nonReactClientEntryPoints = [
|
|
174107
|
-
...
|
|
174108
|
-
...
|
|
174103
|
+
...svelteIndexPaths,
|
|
174104
|
+
...svelteClientPaths,
|
|
174109
174105
|
...htmlEntries,
|
|
174110
174106
|
...vueIndexPaths,
|
|
174111
174107
|
...vueClientPaths,
|
|
@@ -174422,14 +174418,6 @@ ${content.slice(firstUseIdx)}`;
|
|
|
174422
174418
|
...cssOutputs
|
|
174423
174419
|
], buildPath)
|
|
174424
174420
|
};
|
|
174425
|
-
if (hmr) {
|
|
174426
|
-
for (const indexPath of svelteIndexPaths) {
|
|
174427
|
-
const baseName = basename7(indexPath).replace(/\.[^.]+$/, "");
|
|
174428
|
-
if (!baseName)
|
|
174429
|
-
continue;
|
|
174430
|
-
manifest[`${toPascal(baseName)}Index`] = indexPath;
|
|
174431
|
-
}
|
|
174432
|
-
}
|
|
174433
174421
|
for (const artifact of serverOutputs) {
|
|
174434
174422
|
const fileWithHash = basename7(artifact.path);
|
|
174435
174423
|
const [baseName] = fileWithHash.split(`.${artifact.hash}.`);
|
|
@@ -174525,7 +174513,6 @@ ${content.slice(firstUseIdx)}`;
|
|
|
174525
174513
|
}
|
|
174526
174514
|
await cleanup({
|
|
174527
174515
|
angularDir,
|
|
174528
|
-
preserveSvelteGenerated: hmr,
|
|
174529
174516
|
reactDir,
|
|
174530
174517
|
svelteDir,
|
|
174531
174518
|
vueDir
|
|
@@ -179218,5 +179205,5 @@ export {
|
|
|
179218
179205
|
build
|
|
179219
179206
|
};
|
|
179220
179207
|
|
|
179221
|
-
//# debugId=
|
|
179208
|
+
//# debugId=556621EB787DDA5C64756E2164756E21
|
|
179222
179209
|
//# sourceMappingURL=build.js.map
|