5.1.0 • Published 23 days ago

@vavite/expose-vite-dev-server v5.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
23 days ago

@vavite/expose-vite-dev-server

@vavite/expose-vite-dev-server is a Vite plugin for exposing the Vite development server to user code during development. It can be used for accessing Vite development server methods such as ssrFixStacktrace and transformIndexHtml in vavite, @vavite/connect, and @vavite/reloader applications.

Installation and usage

Install vite and @vavite/expose-vite-dev-server as development dependencies (npm install --save-dev vite @vavite/expose-vite-dev-server) and add @vavite/expose-vite-dev-server plugin to your Vite config:

import { defineConfig } from "vite";
import exposeViteDevServer from "@vavite/expose-vite-dev-server";

export default defineConfig({
  plugins: [exposeViteDevServer()],
});

Now you can import the dev server in your application with import viteDevServer from @vavite/expose-vite-dev-server/vite-dev-server during development. In production, it will be available but its value will be undefined.

5.1.0

23 days ago

5.0.1

2 months ago

5.0.0

3 months ago

4.1.3

4 months ago

4.1.2

4 months ago

4.1.1

10 months ago

4.1.0

10 months ago

4.0.3

11 months ago

4.0.2

11 months ago

4.0.1

11 months ago

4.0.0

12 months ago

1.8.2

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

3.0.0

1 year ago

1.8.3

1 year ago

1.8.1

2 years ago

1.8.0

2 years ago

1.8.1-canary.0

2 years ago

1.7.1

2 years ago

1.7.0

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.6.0-loader.1

2 years ago

1.6.0-loader.2

2 years ago

1.6.0-loader.0

2 years ago

1.4.2-next.0

2 years ago

1.4.2-next.1

2 years ago

1.4.2-next.2

2 years ago

1.4.2-next.3

2 years ago

1.4.3

2 years ago

1.4.2-next.4

2 years ago

1.4.2

2 years ago

1.5.0

2 years ago

1.4.1

2 years ago

1.4.0-next.1

2 years ago

1.4.0

2 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.2.0

3 years ago

1.3.0

3 years ago

1.1.1

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.1.0-beta.1

3 years ago