@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/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,
|
|
@@ -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
|
|
@@ -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({
|
|
@@ -179218,5 +179208,5 @@ export {
|
|
|
179218
179208
|
build
|
|
179219
179209
|
};
|
|
179220
179210
|
|
|
179221
|
-
//# debugId=
|
|
179211
|
+
//# debugId=2F7F7BDC05C86F2364756E2164756E21
|
|
179222
179212
|
//# sourceMappingURL=build.js.map
|