Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions guide/api-environment-runtimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,10 @@ export interface ModuleRunnerOptions {
| InterceptorOptions
/**
* HMR を無効にするか、HMR オプションを設定します。
*
* @default true
*/
hmr?:
| false
| {
/**
* HMR ロガーを設定します。
*/
logger?: false | HMRLogger
}
hmr?: boolean | ModuleRunnerHmr
/**
* カスタムモジュールキャッシュ。指定されていない場合は、モジュールランナーの
* インスタンスごとに個別のモジュールキャッシュが作成されます。
Expand Down Expand Up @@ -356,6 +351,7 @@ export const runner = new ModuleRunner(
return response.json()
},
},
hmr: false, // HMR は transport.connect を必要とするため HMR を無効にする
},
new ESModulesEvaluator(),
)
Expand Down