Skip to content

Commit

Permalink
chore: fix typo (#2549)
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart authored Mar 17, 2021
1 parent e44cc11 commit 8cd76bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export async function createServer(
const plugins = config.plugins
const container = await createPluginContainer(config, watcher)
const moduleGraph = new ModuleGraph(container)
const closeHttpServer = createSeverCloseFn(httpServer)
const closeHttpServer = createServerCloseFn(httpServer)

const server: ViteDevServer = {
config: config,
Expand Down Expand Up @@ -617,7 +617,7 @@ async function startServer(
})
}

function createSeverCloseFn(server: http.Server | null) {
function createServerCloseFn(server: http.Server | null) {
if (!server) {
return () => {}
}
Expand Down

0 comments on commit 8cd76bf

Please sign in to comment.