Skip to content

Commit 1ebb26e

Browse files
authored
fix: #230 use node:fs vs. fs import (#231)
1 parent c2395b2 commit 1ebb26e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/serve-static.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { Context, Env, MiddlewareHandler } from 'hono'
22
import { getFilePath, getFilePathWithoutDefaultDocument } from 'hono/utils/filepath'
33
import { getMimeType } from 'hono/utils/mime'
4-
import { createReadStream, lstatSync } from 'fs'
5-
import type { ReadStream, Stats } from 'fs'
4+
import { createReadStream, lstatSync } from 'node:fs'
5+
import type { ReadStream, Stats } from 'node:fs'
66

77
export type ServeStaticOptions<E extends Env = Env> = {
88
/**

0 commit comments

Comments
 (0)