1 Star 2 Fork 0

masx200/deno-http-middleware

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rollup.config.mjs 857 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { fileCache, httpResolve } from "@masx200/rollup-plugin-http-resolve";
import { defineConfig } from "rollup";
import json from "@rollup/plugin-json";
import { minify } from "rollup-plugin-swc-minify";
import { nodeResolve } from "@rollup/plugin-node-resolve";
import ts from "rollup-plugin-ts";
export default defineConfig([
{
external: ["@hattip/response"],
input: "./mod.ts",
output: {
file: "./dist/index.js",
format: "esm",
sourcemap: true,
},
plugins: [
nodeResolve(),
httpResolve({ cache: new fileCache() }),
ts({
transpileOnly: true,
transpiler: "swc",
/* Plugin options */
}),
json(),
// dts(),
minify(),
],
},
]);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/masx200/deno-http-middleware.git
git@gitee.com:masx200/deno-http-middleware.git
masx200
deno-http-middleware
deno-http-middleware
master

搜索帮助