Skip to content

Commit

Permalink
chore: replace old
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Aug 14, 2024
1 parent eac7699 commit 6725d46
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 374 deletions.
169 changes: 0 additions & 169 deletions packages/vite-node-miniflare/src/client/worker-entry.ts

This file was deleted.

3 changes: 1 addition & 2 deletions packages/vite-node-miniflare/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// export { vitePluginViteNodeMiniflare } from "./server/plugin";
export { vitePluginWorkerd } from "./v6/plugin";
export * from "./plugin";
File renamed without changes.
177 changes: 0 additions & 177 deletions packages/vite-node-miniflare/src/server/plugin.ts

This file was deleted.

23 changes: 21 additions & 2 deletions packages/vite-node-miniflare/src/shared.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
export const SERVER_RPC_PATH = "/__server_rpc__";
export const CLIENT_RPC_PATH = "/__client_rpc__";
export const RUNNER_INIT_PATH = "/__viteInit";
export const RUNNER_EVAL_PATH = "/__viteEval";
export const ANY_URL = "https://any.local";

export type RunnerEnv = {
__viteUnsafeEval: {
eval: (code: string, filename?: string) => any;
};
__viteFetchModule: {
fetch: (request: Request) => Promise<Response>;
};
__viteRunner: DurableObject;
__viteOptions: {
root: string;
hmr: boolean;
};
};

export type FetchMetadata = {
entry: string;
};
1 change: 0 additions & 1 deletion packages/vite-node-miniflare/src/v6/index.ts

This file was deleted.

21 changes: 0 additions & 21 deletions packages/vite-node-miniflare/src/v6/shared.ts

This file was deleted.

File renamed without changes.
Loading

0 comments on commit 6725d46

Please sign in to comment.