summaryrefslogtreecommitdiff
path: root/cli/bench/testdata/npm/hono/dist/middleware/serve-static/module.mjs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-08-19 15:54:54 +0530
committerGitHub <noreply@github.com>2022-08-19 15:54:54 +0530
commit25a109d9ea27ad3a76fdce14bba283e953af9bce (patch)
tree68f0280065c9df4be8fa325ba82693879b4b46cd /cli/bench/testdata/npm/hono/dist/middleware/serve-static/module.mjs
parent9e576dff7c39cfd510c60ba92aa0d1c15fd24a6b (diff)
chore(bench): add flash router benchmarks (#15495)
Diffstat (limited to 'cli/bench/testdata/npm/hono/dist/middleware/serve-static/module.mjs')
-rw-r--r--cli/bench/testdata/npm/hono/dist/middleware/serve-static/module.mjs13
1 files changed, 13 insertions, 0 deletions
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 };