mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05: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 };
|