0.1.1 • Published 1 month ago

@hiogawa/vite-node-miniflare v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

vite-node-miniflare

!note now it uses ViteRuntime instead of vite-node

Running vite-node on miniflare.

See https://github.com/dario-piotrowicz/vite-workerd-ssr-request-handler-experimentation/pull/1 for the motivation.

See https://github.com/hi-ogawa/vite-plugins/issues/127 for known limitations.

examples

usage

//
// vite.config.ts
//
import { defineConfig } from "vite";
import { vitePluginViteNodeMiniflare } from "@hiogawa/vite-node-miniflare";

export default defineConfig({
  plugins: [vitePluginViteNodeMiniflare({ entry: "/worker-entry.ts" })],
});

//
// worker-entry.ts
//
export default {
  async fetch() {
    return new Response("hello workerd");
  },
};

credits/references

0.1.1

1 month ago

0.1.0

1 month ago

0.0.3-pre.3

3 months ago

0.0.3-pre.2

3 months ago

0.0.3-pre.1

3 months ago

0.0.3-pre.0

3 months ago

0.0.0-pre.13

3 months ago

0.0.1

3 months ago

0.0.2

3 months ago

0.0.0-pre.12

5 months ago

0.0.0-pre.10

5 months ago

0.0.0-pre.11

5 months ago

0.0.0-pre.9

5 months ago

0.0.0-pre.8

5 months ago

0.0.0-pre.6

5 months ago

0.0.0-pre.7

5 months ago

0.0.0-pre.5

5 months ago

0.0.0-pre.2

5 months ago

0.0.0-pre.3

5 months ago

0.0.0-pre.4

5 months ago

0.0.0-pre.1

5 months ago

0.0.0-pre.0

5 months ago