Skip to content

Commit

Permalink
chore: replace more
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Oct 27, 2024
1 parent 408c8f0 commit 25a519e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/web-worker-rsc/src/lib/runner.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ESModulesEvaluator, ModuleRunner } from "vite/module-runner";
import { fetchClientFetchModule } from "./fetch-module-client";
import { fetchClientFetchModule } from "../../../web-worker/src/lib/fetch-module-client";

export function createFetchRunner(options: {
root: string;
Expand All @@ -10,7 +10,7 @@ export function createFetchRunner(options: {
root: options.root,
sourcemapInterceptor: false,
transport: {
fetchModule: fetchClientFetchModule(options.environmentName),
invoke: fetchClientFetchModule(options.environmentName),
},
hmr: false,
},
Expand Down
6 changes: 5 additions & 1 deletion examples/web-worker-rsc/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import {
createEnvironmentWithInvoke,
vitePluginFetchModuleServer,
} from "../web-worker/src/lib/fetch-module-server";
import { vitePluginWorkerEnvironment } from "../web-worker/vite.config";
import { vitePluginFetchModuleServer } from "./src/lib/fetch-module-server";

export default defineConfig((_env) => ({
clearScreen: false,
Expand All @@ -25,6 +28,7 @@ export default defineConfig((_env) => ({
noExternal: true,
},
dev: {
createEnvironment: createEnvironmentWithInvoke,
optimizeDeps: {
include: [
"react",
Expand Down

0 comments on commit 25a519e

Please sign in to comment.