@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.
@@ -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;
@@ -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;