diff --git a/guide/api-environment-runtimes.md b/guide/api-environment-runtimes.md index 86391176..5ab11fff 100644 --- a/guide/api-environment-runtimes.md +++ b/guide/api-environment-runtimes.md @@ -150,11 +150,10 @@ export class ModuleRunner { ```js import { ModuleRunner, ESModulesEvaluator } from 'vite/module-runner' -import { root, transport } from './rpc-implementation.js' +import { transport } from './rpc-implementation.js' const moduleRunner = new ModuleRunner( { - root, transport, }, new ESModulesEvaluator(), @@ -180,10 +179,6 @@ type ModuleRunnerTransport = unknown // ---cut--- interface ModuleRunnerOptions { - /** - * プロジェクトのルート - */ - root: string /** * サーバーと通信するための一連のメソッド。 */ @@ -294,7 +289,6 @@ const transport = { const runner = new ModuleRunner( { - root: fileURLToPath(new URL('./', import.meta.url)), transport, }, new ESModulesEvaluator(), @@ -362,7 +356,6 @@ import { ESModulesEvaluator, ModuleRunner } from 'vite/module-runner' export const runner = new ModuleRunner( { - root: fileURLToPath(new URL('./', import.meta.url)), transport: { async invoke(data) { const response = await fetch(`http://my-vite-server/invoke`, {