@absolutejs/absolute 0.19.0-beta.392 → 0.19.0-beta.394
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/build.js +11 -21
- package/dist/build.js.map +5 -5
- package/dist/index.js +11 -21
- package/dist/index.js.map +5 -5
- 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,
|
|
@@ -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
|
|
@@ -176837,9 +176824,11 @@ ${code}`;
|
|
|
176837
176824
|
svelteCompiler = await import("svelte/compiler");
|
|
176838
176825
|
}
|
|
176839
176826
|
const isModule = filePath.endsWith(".svelte.ts") || filePath.endsWith(".svelte.js");
|
|
176840
|
-
const
|
|
176827
|
+
const loweredAwaitSource = isModule ? { code: raw, transformed: false } : lowerSvelteAwaitSlotSyntax(raw);
|
|
176828
|
+
const loweredSource = isModule ? loweredAwaitSource : lowerSvelteIslandSyntax(loweredAwaitSource.code, "client");
|
|
176841
176829
|
const source = loweredSource.code;
|
|
176842
|
-
const
|
|
176830
|
+
const enableAsync = loweredAwaitSource.transformed || loweredSource.transformed;
|
|
176831
|
+
const code = isModule ? compileSvelteModule(source, filePath) : compileSvelteComponent(source, filePath, projectRoot, enableAsync);
|
|
176843
176832
|
return rewriteImports2(code, filePath, projectRoot, rewriter);
|
|
176844
176833
|
}, compileVueTemplate = (descriptor, compiledScript, filePath, componentId) => {
|
|
176845
176834
|
const scriptContent = compiledScript.content;
|
|
@@ -177161,6 +177150,7 @@ var init_moduleServer = __esm(() => {
|
|
|
177161
177150
|
init_constants();
|
|
177162
177151
|
init_resolvePackageImport();
|
|
177163
177152
|
init_sourceMetadata();
|
|
177153
|
+
init_lowerAwaitSlotSyntax();
|
|
177164
177154
|
init_lowerIslandSyntax();
|
|
177165
177155
|
init_transformCache();
|
|
177166
177156
|
jsTranspiler2 = new Bun.Transpiler({
|
|
@@ -187589,5 +187579,5 @@ export {
|
|
|
187589
187579
|
ANGULAR_INIT_TIMEOUT_MS
|
|
187590
187580
|
};
|
|
187591
187581
|
|
|
187592
|
-
//# debugId=
|
|
187582
|
+
//# debugId=B0FB219B203054C364756E2164756E21
|
|
187593
187583
|
//# sourceMappingURL=index.js.map
|