@cloudwerk/cli 0.15.9 → 0.15.10
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/index.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -379,6 +379,9 @@ async function build(pathArg, options) {
|
|
|
379
379
|
if (warning.code === "MODULE_LEVEL_DIRECTIVE" && warning.message.includes('"use client"')) {
|
|
380
380
|
return;
|
|
381
381
|
}
|
|
382
|
+
if (warning.code === "MISSING_EXPORT" && warning.message && /"(config|loader|default|generateStaticParams)" is not exported/.test(warning.message)) {
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
382
385
|
defaultHandler(warning);
|
|
383
386
|
},
|
|
384
387
|
output: {
|
|
@@ -409,9 +412,7 @@ async function build(pathArg, options) {
|
|
|
409
412
|
logger.debug(`Loaded asset manifest with ${Object.keys(assetManifest).length} entries`);
|
|
410
413
|
}
|
|
411
414
|
} catch (error) {
|
|
412
|
-
|
|
413
|
-
logger.debug(`Client build skipped or failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
414
|
-
}
|
|
415
|
+
logger.warn(`Client build failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
415
416
|
}
|
|
416
417
|
const renderer = cloudwerkConfig.ui?.renderer ?? "hono-jsx";
|
|
417
418
|
const serverEntryCode = generateServerEntry(manifest, scanResult, {
|
|
@@ -463,7 +464,7 @@ async function build(pathArg, options) {
|
|
|
463
464
|
if (warning.code === "MODULE_LEVEL_DIRECTIVE" && warning.message.includes('"use client"')) {
|
|
464
465
|
return;
|
|
465
466
|
}
|
|
466
|
-
if (warning.code === "MISSING_EXPORT" && warning.message && /
|
|
467
|
+
if (warning.code === "MISSING_EXPORT" && warning.message && /"(config|loader|default|generateStaticParams)" is not exported/.test(warning.message)) {
|
|
467
468
|
return;
|
|
468
469
|
}
|
|
469
470
|
defaultHandler(warning);
|