@mandujs/core 0.18.17 → 0.18.19
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/package.json +1 -1
- package/src/bundler/dev.ts +47 -2
- package/src/devtools/client/components/kitchen-root.tsx +42 -0
- package/src/devtools/client/components/mandu-character.tsx +9 -6
- package/src/devtools/client/components/panel/panel-container.tsx +52 -12
- package/src/devtools/design-tokens.ts +1 -0
- package/src/router/fs-scanner.ts +549 -512
- package/src/router/fs-types.ts +1 -1
- package/src/runtime/ssr.ts +1 -0
- package/src/runtime/streaming-ssr.ts +1 -0
package/src/router/fs-types.ts
CHANGED
|
@@ -184,7 +184,7 @@ export interface ScanResult {
|
|
|
184
184
|
*/
|
|
185
185
|
export interface ScanError {
|
|
186
186
|
/** 에러 타입 */
|
|
187
|
-
type: "invalid_segment" | "duplicate_route" | "file_read_error" | "pattern_conflict";
|
|
187
|
+
type: "invalid_segment" | "duplicate_route" | "file_read_error" | "pattern_conflict" | "hydration_shell_mismatch_risk";
|
|
188
188
|
|
|
189
189
|
/** 에러 메시지 */
|
|
190
190
|
message: string;
|
package/src/runtime/ssr.ts
CHANGED
|
@@ -316,6 +316,7 @@ function generateClientRouterScript(manifest: BundleManifest): string {
|
|
|
316
316
|
function generateHMRScript(port: number): string {
|
|
317
317
|
const hmrPort = port + PORTS.HMR_OFFSET;
|
|
318
318
|
return `<script>
|
|
319
|
+
window.__MANDU_HMR_PORT__ = ${hmrPort};
|
|
319
320
|
(function() {
|
|
320
321
|
var ws = null;
|
|
321
322
|
var reconnectAttempts = 0;
|
|
@@ -587,6 +587,7 @@ function generateDeferredDataScript(routeId: string, key: string, data: unknown)
|
|
|
587
587
|
function generateHMRScript(port: number): string {
|
|
588
588
|
const hmrPort = port + PORTS.HMR_OFFSET;
|
|
589
589
|
return `<script>
|
|
590
|
+
window.__MANDU_HMR_PORT__ = ${hmrPort};
|
|
590
591
|
(function() {
|
|
591
592
|
var ws = null;
|
|
592
593
|
var reconnectAttempts = 0;
|