From 25a109d9ea27ad3a76fdce14bba283e953af9bce Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 19 Aug 2022 15:54:54 +0530 Subject: chore(bench): add flash router benchmarks (#15495) --- .../npm/hono/dist/middleware/serve-static/module.mjs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cli/bench/testdata/npm/hono/dist/middleware/serve-static/module.mjs (limited to 'cli/bench/testdata/npm/hono/dist/middleware/serve-static/module.mjs') diff --git a/cli/bench/testdata/npm/hono/dist/middleware/serve-static/module.mjs b/cli/bench/testdata/npm/hono/dist/middleware/serve-static/module.mjs new file mode 100644 index 000000000..968fd4433 --- /dev/null +++ b/cli/bench/testdata/npm/hono/dist/middleware/serve-static/module.mjs @@ -0,0 +1,13 @@ +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore +// For ES module mode +import manifest from '__STATIC_CONTENT_MANIFEST'; +import { serveStatic } from './serve-static'; +const module = (options = { root: '' }) => { + return serveStatic({ + root: options.root, + path: options.path, + manifest: options.manifest ? options.manifest : manifest, + }); +}; +export { module as serveStatic }; -- cgit v1.2.3