@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/index.js
CHANGED
|
@@ -172254,7 +172254,6 @@ import { rm as rm3 } from "fs/promises";
|
|
|
172254
172254
|
import { join as join10 } from "path";
|
|
172255
172255
|
var cleanup = async ({
|
|
172256
172256
|
angularDir,
|
|
172257
|
-
preserveSvelteGenerated = false,
|
|
172258
172257
|
reactDir,
|
|
172259
172258
|
svelteDir,
|
|
172260
172259
|
vueDir
|
|
@@ -172268,7 +172267,7 @@ var cleanup = async ({
|
|
|
172268
172267
|
force: true,
|
|
172269
172268
|
recursive: true
|
|
172270
172269
|
}) : undefined,
|
|
172271
|
-
svelteDir ?
|
|
172270
|
+
svelteDir ? rm3(join10(svelteDir, "generated"), {
|
|
172272
172271
|
force: true,
|
|
172273
172272
|
recursive: true
|
|
172274
172273
|
}) : undefined,
|
|
@@ -173251,7 +173250,7 @@ ${registrations}
|
|
|
173251
173250
|
({ tsLibDir } = cached);
|
|
173252
173251
|
cached.lastUsed = Date.now();
|
|
173253
173252
|
} else {
|
|
173254
|
-
const tsPath = __require.resolve("
|
|
173253
|
+
const tsPath = __require.resolve("typescript");
|
|
173255
173254
|
const tsRootDir = dirname9(tsPath);
|
|
173256
173255
|
tsLibDir = tsRootDir.endsWith("lib") ? tsRootDir : resolve18(tsRootDir, "lib");
|
|
173257
173256
|
const config = readConfiguration("./tsconfig.json");
|
|
@@ -174252,11 +174251,8 @@ var isDev2, collectConventionSourceFiles = (entry) => {
|
|
|
174252
174251
|
if (!existsSync16(indexFile))
|
|
174253
174252
|
continue;
|
|
174254
174253
|
let content = readFileSync10(indexFile, "utf-8");
|
|
174255
|
-
|
|
174256
|
-
|
|
174257
|
-
const importUrl = `/@src/${relative9(process.cwd(), resolvedImport).replace(/\\/g, "/")}`;
|
|
174258
|
-
return `import Component from ${JSON.stringify(importUrl)}`;
|
|
174259
|
-
});
|
|
174254
|
+
const srcRel = relative9(process.cwd(), resolve19(entry)).replace(/\\/g, "/");
|
|
174255
|
+
content = content.replace(/import\s+Component\s+from\s+['"]([^'"]+)['"]/, `import Component from "/@src/${srcRel}"`);
|
|
174260
174256
|
writeFileSync7(join18(devIndexDir, `${name}.svelte.js`), content);
|
|
174261
174257
|
}
|
|
174262
174258
|
}, copyVueDevIndexes = (vueDir, vuePagesPath, vueEntries, devIndexDir) => {
|
|
@@ -174685,8 +174681,8 @@ ${content.slice(firstUseIdx)}`;
|
|
|
174685
174681
|
].filter((dir) => Boolean(dir));
|
|
174686
174682
|
const urlReferencedFiles = await scanWorkerReferences(allFrameworkDirs);
|
|
174687
174683
|
const nonReactClientEntryPoints = [
|
|
174688
|
-
...
|
|
174689
|
-
...
|
|
174684
|
+
...svelteIndexPaths,
|
|
174685
|
+
...svelteClientPaths,
|
|
174690
174686
|
...htmlEntries,
|
|
174691
174687
|
...vueIndexPaths,
|
|
174692
174688
|
...vueClientPaths,
|
|
@@ -175003,14 +174999,6 @@ ${content.slice(firstUseIdx)}`;
|
|
|
175003
174999
|
...cssOutputs
|
|
175004
175000
|
], buildPath)
|
|
175005
175001
|
};
|
|
175006
|
-
if (hmr) {
|
|
175007
|
-
for (const indexPath of svelteIndexPaths) {
|
|
175008
|
-
const baseName = basename8(indexPath).replace(/\.[^.]+$/, "");
|
|
175009
|
-
if (!baseName)
|
|
175010
|
-
continue;
|
|
175011
|
-
manifest[`${toPascal(baseName)}Index`] = indexPath;
|
|
175012
|
-
}
|
|
175013
|
-
}
|
|
175014
175002
|
for (const artifact of serverOutputs) {
|
|
175015
175003
|
const fileWithHash = basename8(artifact.path);
|
|
175016
175004
|
const [baseName] = fileWithHash.split(`.${artifact.hash}.`);
|
|
@@ -175106,7 +175094,6 @@ ${content.slice(firstUseIdx)}`;
|
|
|
175106
175094
|
}
|
|
175107
175095
|
await cleanup({
|
|
175108
175096
|
angularDir,
|
|
175109
|
-
preserveSvelteGenerated: hmr,
|
|
175110
175097
|
reactDir,
|
|
175111
175098
|
svelteDir,
|
|
175112
175099
|
vueDir
|
|
@@ -187589,5 +187576,5 @@ export {
|
|
|
187589
187576
|
ANGULAR_INIT_TIMEOUT_MS
|
|
187590
187577
|
};
|
|
187591
187578
|
|
|
187592
|
-
//# debugId=
|
|
187579
|
+
//# debugId=C9C31D4A66E4674E64756E2164756E21
|
|
187593
187580
|
//# sourceMappingURL=index.js.map
|