Skip to content

Commit

Permalink
[BUGFIX] Fix plugin type
Browse files Browse the repository at this point in the history
  • Loading branch information
s2b committed Jul 17, 2024
1 parent 78931dd commit b96def2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createLogger, type PluginOption, type ViteDevServer } from "vite";
import { createLogger, type Plugin, type ViteDevServer } from "vite";
import type { IncomingMessage } from "node:http";

const originPlaceholder = "__VITE_AUTO_ORIGIN__";
Expand Down Expand Up @@ -47,7 +47,7 @@ function transform(code: string): string {
return replaceAll(originPlaceholder, requestOrigin, code);
}

export default function autoOrigin(): PluginOption {
export default function autoOrigin(): Plugin {
return {
name: "vite-plugin-auto-origin",
apply: "serve",
Expand Down

0 comments on commit b96def2

Please sign in to comment.