mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
14 lines
431 B
JavaScript
14 lines
431 B
JavaScript
|
// 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 };
|