summaryrefslogtreecommitdiff
path: root/cli/bench/testdata/npm/hono/dist/middleware/serve-static/module.mjs
diff options
context:
space:
mode:
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 };