Skip to content

Commit

Permalink
minor refactor (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtritto authored Jan 17, 2025
1 parent 97ae47f commit db568a8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/vike-node/src/plugin/plugins/edgePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { promisify } from 'util'
import esbuild from 'esbuild'
import fs from 'fs/promises'
import { prerender } from 'vike/api'
import { type Plugin, type ResolvedConfig } from 'vite'
import type { Plugin, ResolvedConfig } from 'vite'
import type { ConfigVikeNodeResolved, Runtime } from '../../types.js'
import { assert } from '../../utils/assert.js'
import { copyFileOrFolder } from '../utils/copyFileOrFolder.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/vike-node/src/plugin/utils/getConfigVikeNode.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export { getConfigVikeNode }

import { ResolvedConfig, UserConfig } from 'vite'
import { ConfigVikeNodeResolved } from '../../types.js'
import type { ConfigVikeNodeResolved } from '../../types.js'
import { assert } from '../../utils/assert.js'

function getConfigVikeNode(config: ResolvedConfig | UserConfig): ConfigVikeNodeResolved {
Expand Down
2 changes: 1 addition & 1 deletion packages/vike-node/src/runtime/utils/header-utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export { flattenHeaders, parseHeaders }

import type { OutgoingHttpHeaders } from 'node:http'
import { HeadersProvided } from '../types.js'
import type { HeadersProvided } from '../types.js'

function flattenHeaders(headers: OutgoingHttpHeaders): [string, string][] {
const flatHeaders: [string, string][] = []
Expand Down
7 changes: 1 addition & 6 deletions packages/vike-node/src/runtime/vike-handler.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import type { IncomingMessage, ServerResponse } from 'http'
import compressMiddlewareFactory from '@universal-middleware/compress'
import {
type Get,
type RuntimeAdapter,
type UniversalHandler,
type UniversalMiddleware
} from '@universal-middleware/core'
import type { Get, RuntimeAdapter, UniversalHandler, UniversalMiddleware } from '@universal-middleware/core'
import { renderPage as _renderPage } from 'vike/server'
import { assert } from '../utils/assert.js'
import { isVercel } from '../utils/isVercel.js'
Expand Down

0 comments on commit db568a8

Please sign in to comment.