@ubean/build 0.1.10 → 0.1.12
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/production.js +5 -4
- package/package.json +9 -9
package/dist/production.js
CHANGED
|
@@ -27,7 +27,7 @@ function toVitePath(p) {
|
|
|
27
27
|
}
|
|
28
28
|
async function generateVirtualModulesToDisk(cwd, config, scanResult, virtualDir) {
|
|
29
29
|
const mode = config.mode;
|
|
30
|
-
const ssrEnabled = mode === "fullstack" && config.ssr || mode === "ssg";
|
|
30
|
+
const ssrEnabled = mode === "fullstack" && config.ssr.enabled || mode === "ssg";
|
|
31
31
|
const hasPages = mode !== "backend";
|
|
32
32
|
const hasServer = mode !== "spa";
|
|
33
33
|
await mkdir(virtualDir, { recursive: true });
|
|
@@ -159,7 +159,7 @@ const _pageRenderer = createVueRenderer({
|
|
|
159
159
|
resolveAppConfig: () => _resolveAppConfig('server')
|
|
160
160
|
});
|
|
161
161
|
` : `
|
|
162
|
-
// --- SSR disabled (mode=${mode}, ssr=${config.ssr}) ---
|
|
162
|
+
// --- SSR disabled (mode=${mode}, ssr=${config.ssr.enabled}) ---
|
|
163
163
|
// pageRenderer is null; page requests fall back to a client-only HTML shell.
|
|
164
164
|
const _pageRenderer = null;`;
|
|
165
165
|
if (hasServer) {
|
|
@@ -249,6 +249,7 @@ export async function createApp(options = {}) {
|
|
|
249
249
|
pageAssetTags: _assetTags,
|
|
250
250
|
publicDir: ${JSON.stringify(publicDir)},
|
|
251
251
|
i18nConfig: ${JSON.stringify(config.i18n)},
|
|
252
|
+
ssrExclude: ${JSON.stringify(config.ssr?.exclude ?? [])},
|
|
252
253
|
...options
|
|
253
254
|
});
|
|
254
255
|
|
|
@@ -420,10 +421,10 @@ async function buildProduction(options) {
|
|
|
420
421
|
const outDirs = getOutDirs(cwd, config.build.outputDir);
|
|
421
422
|
const srcDir = resolve(cwd, config.srcDir);
|
|
422
423
|
const mode = config.mode;
|
|
423
|
-
const ssrEnabled = mode === "fullstack" && config.ssr || mode === "ssg";
|
|
424
|
+
const ssrEnabled = mode === "fullstack" && config.ssr.enabled || mode === "ssg";
|
|
424
425
|
const hasPages = mode !== "backend";
|
|
425
426
|
const hasServer = mode !== "spa";
|
|
426
|
-
logger.info(`Cleaning output directory... (mode=${mode}${mode === "fullstack" ? `, ssr=${config.ssr}` : ""})`);
|
|
427
|
+
logger.info(`Cleaning output directory... (mode=${mode}${mode === "fullstack" ? `, ssr=${config.ssr.enabled}` : ""})`);
|
|
427
428
|
if (existsSync(outDirs.root)) await rm(outDirs.root, {
|
|
428
429
|
recursive: true,
|
|
429
430
|
force: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ubean/build",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Core Vite plugin (framework-agnostic) for ubean (ubeanPlugin, virtual modules: routes/pages/meta/app-config/locales, macros)",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"consola": "^3.4.2",
|
|
29
29
|
"oxc-transform": "^0.142.0",
|
|
30
30
|
"pathe": "^2.0.3",
|
|
31
|
-
"@ubean/config": "0.1.
|
|
32
|
-
"@ubean/islands": "0.1.
|
|
33
|
-
"@ubean/modules": "0.1.
|
|
34
|
-
"@ubean/preset": "0.1.
|
|
35
|
-
"@ubean/
|
|
36
|
-
"@ubean/
|
|
37
|
-
"@ubean/
|
|
38
|
-
"@ubean/
|
|
31
|
+
"@ubean/config": "0.1.12",
|
|
32
|
+
"@ubean/islands": "0.1.12",
|
|
33
|
+
"@ubean/modules": "0.1.12",
|
|
34
|
+
"@ubean/preset": "0.1.12",
|
|
35
|
+
"@ubean/ssr": "0.1.12",
|
|
36
|
+
"@ubean/vite": "0.1.12",
|
|
37
|
+
"@ubean/routing": "0.1.12",
|
|
38
|
+
"@ubean/utils": "0.1.12"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^26.1.2",
|