@absolutejs/absolute 0.19.0-beta.765 → 0.19.0-beta.767
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 +31 -3
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +31 -3
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +60 -5
- package/dist/build.js.map +3 -3
- package/dist/cli/index.js +198 -22
- package/dist/index.js +96 -8
- package/dist/index.js.map +6 -6
- package/dist/react/index.js +39 -5
- package/dist/react/index.js.map +4 -4
- package/dist/react/server.js +39 -5
- package/dist/react/server.js.map +4 -4
- package/dist/src/cli/scripts/compile.d.ts +1 -0
- package/dist/src/utils/resolveConvention.d.ts +1 -0
- package/dist/svelte/index.js +31 -3
- package/dist/svelte/index.js.map +3 -3
- package/dist/svelte/server.js +31 -3
- package/dist/svelte/server.js.map +3 -3
- package/dist/vue/index.js +31 -3
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +31 -3
- package/dist/vue/server.js.map +3 -3
- package/package.json +7 -7
package/dist/build.js
CHANGED
|
@@ -45889,12 +45889,57 @@ ${content.slice(firstUseIdx)}`;
|
|
|
45889
45889
|
continue;
|
|
45890
45890
|
islandAngularClientPathMap.set(resolve18(sourcePath), clientPath);
|
|
45891
45891
|
}
|
|
45892
|
+
const reactConventionSources = collectConventionSourceFiles(conventionsMap.react);
|
|
45892
45893
|
const svelteConventionSources = collectConventionSourceFiles(conventionsMap.svelte);
|
|
45893
45894
|
const vueConventionSources = collectConventionSourceFiles(conventionsMap.vue);
|
|
45894
|
-
|
|
45895
|
-
|
|
45895
|
+
const angularConventionSources = collectConventionSourceFiles(conventionsMap.angular);
|
|
45896
|
+
let conventionOutputPaths = [];
|
|
45897
|
+
if (reactConventionSources.length > 0 || svelteConventionSources.length > 0 || vueConventionSources.length > 0 || angularConventionSources.length > 0) {
|
|
45898
|
+
const compileReactConventions = async () => {
|
|
45899
|
+
if (reactConventionSources.length === 0)
|
|
45900
|
+
return emptyStringArray;
|
|
45901
|
+
const destDir = join20(buildPath, "conventions", "react");
|
|
45902
|
+
rmSync2(destDir, { force: true, recursive: true });
|
|
45903
|
+
mkdirSync10(destDir, { recursive: true });
|
|
45904
|
+
const destPaths = [];
|
|
45905
|
+
for (let idx = 0;idx < reactConventionSources.length; idx++) {
|
|
45906
|
+
const source = reactConventionSources[idx];
|
|
45907
|
+
if (!source)
|
|
45908
|
+
continue;
|
|
45909
|
+
const result = await bunBuild7({
|
|
45910
|
+
entrypoints: [source],
|
|
45911
|
+
format: "esm",
|
|
45912
|
+
jsx: { development: false },
|
|
45913
|
+
minify: !isDev,
|
|
45914
|
+
naming: `${idx}-[name].[ext]`,
|
|
45915
|
+
outdir: destDir,
|
|
45916
|
+
plugins: [stylePreprocessorPlugin2],
|
|
45917
|
+
root: dirname11(source),
|
|
45918
|
+
target: "bun",
|
|
45919
|
+
throw: false,
|
|
45920
|
+
tsconfig: "./tsconfig.json"
|
|
45921
|
+
});
|
|
45922
|
+
if (!result.success) {
|
|
45923
|
+
outputLogs(result.logs);
|
|
45924
|
+
throw new Error(`Failed to compile React convention: ${source}`);
|
|
45925
|
+
}
|
|
45926
|
+
const output = result.outputs.find((artifact) => artifact.path.endsWith(".js"));
|
|
45927
|
+
if (!output)
|
|
45928
|
+
throw new Error(`React convention did not emit JavaScript: ${source}`);
|
|
45929
|
+
destPaths.push(output.path);
|
|
45930
|
+
}
|
|
45931
|
+
return destPaths;
|
|
45932
|
+
};
|
|
45933
|
+
const [
|
|
45934
|
+
reactConvPaths,
|
|
45935
|
+
svelteConvResult,
|
|
45936
|
+
vueConvResult,
|
|
45937
|
+
angularConvResult
|
|
45938
|
+
] = await Promise.all([
|
|
45939
|
+
tracePhase("compile/convention-react", compileReactConventions),
|
|
45896
45940
|
svelteConventionSources.length > 0 && svelteDir ? tracePhase("compile/convention-svelte", () => Promise.resolve().then(() => (init_compileSvelte(), exports_compileSvelte)).then((mod) => mod.compileSvelte(svelteConventionSources, svelteDir, new Map, false, styleTransformConfig))) : { svelteServerPaths: emptyStringArray },
|
|
45897
|
-
vueConventionSources.length > 0 && vueDir ? tracePhase("compile/convention-vue", () => Promise.resolve().then(() => (init_compileVue(), exports_compileVue)).then((mod) => mod.compileVue(vueConventionSources, vueDir, false, styleTransformConfig))) : { vueServerPaths: emptyStringArray }
|
|
45941
|
+
vueConventionSources.length > 0 && vueDir ? tracePhase("compile/convention-vue", () => Promise.resolve().then(() => (init_compileVue(), exports_compileVue)).then((mod) => mod.compileVue(vueConventionSources, vueDir, false, styleTransformConfig))) : { vueServerPaths: emptyStringArray },
|
|
45942
|
+
angularConventionSources.length > 0 && angularDir ? tracePhase("compile/convention-angular", () => Promise.resolve().then(() => (init_compileAngular(), exports_compileAngular)).then((mod) => mod.compileAngular(angularConventionSources, angularDir, hmr, styleTransformConfig))) : { serverPaths: emptyStringArray }
|
|
45898
45943
|
]);
|
|
45899
45944
|
const copyConventionFiles = (framework, sources, compiledPaths) => {
|
|
45900
45945
|
const destDir = join20(buildPath, "conventions", framework);
|
|
@@ -45909,8 +45954,17 @@ ${content.slice(firstUseIdx)}`;
|
|
|
45909
45954
|
};
|
|
45910
45955
|
const svelteDests = copyConventionFiles("svelte", svelteConventionSources, svelteConvResult.svelteServerPaths);
|
|
45911
45956
|
const vueDests = copyConventionFiles("vue", vueConventionSources, vueConvResult.vueServerPaths);
|
|
45957
|
+
const angularDests = copyConventionFiles("angular", angularConventionSources, angularConvResult.serverPaths);
|
|
45958
|
+
conventionOutputPaths = [
|
|
45959
|
+
...reactConvPaths,
|
|
45960
|
+
...svelteDests,
|
|
45961
|
+
...vueDests,
|
|
45962
|
+
...angularDests
|
|
45963
|
+
];
|
|
45964
|
+
updateConventionCompiledPaths(conventionsMap.react, reactConventionSources, reactConvPaths);
|
|
45912
45965
|
updateConventionCompiledPaths(conventionsMap.svelte, svelteConventionSources, svelteDests);
|
|
45913
45966
|
updateConventionCompiledPaths(conventionsMap.vue, vueConventionSources, vueDests);
|
|
45967
|
+
updateConventionCompiledPaths(conventionsMap.angular, angularConventionSources, angularDests);
|
|
45914
45968
|
}
|
|
45915
45969
|
const serverEntryPoints = [
|
|
45916
45970
|
...svelteServerPaths,
|
|
@@ -46319,7 +46373,8 @@ ${content.slice(firstUseIdx)}`;
|
|
|
46319
46373
|
...reactClientOutputs.map((a) => a.path),
|
|
46320
46374
|
...nonReactClientOutputs.map((a) => a.path),
|
|
46321
46375
|
...islandClientOutputs.map((a) => a.path),
|
|
46322
|
-
...cssOutputs.map((a) => a.path)
|
|
46376
|
+
...cssOutputs.map((a) => a.path),
|
|
46377
|
+
...conventionOutputPaths
|
|
46323
46378
|
]));
|
|
46324
46379
|
}
|
|
46325
46380
|
if (hmr) {
|
|
@@ -50371,5 +50426,5 @@ export {
|
|
|
50371
50426
|
build
|
|
50372
50427
|
};
|
|
50373
50428
|
|
|
50374
|
-
//# debugId=
|
|
50429
|
+
//# debugId=BF84B2675251199D64756E2164756E21
|
|
50375
50430
|
//# sourceMappingURL=build.js.map
|