Download packages/webrtc-im/rollup.server.js from linuxrun/webrtc: direct link, hf CLI and curl.
- Browser
- Download file 610 Bytes
-
https://huggingface.co/spaces/linuxrun/webrtc/resolve/main/packages/webrtc-im/rollup.server.js
- Command line
-
hf download hf://spaces/linuxrun/webrtc/packages/webrtc-im/rollup.server.js
-
curl -L -o rollup.server.js https://huggingface.co/spaces/linuxrun/webrtc/resolve/main/packages/webrtc-im/rollup.server.js
610 Bytes
| import path from "path"; | |
| import esbuild from "rollup-plugin-esbuild"; | |
| export default async () => { | |
| return { | |
| input: "./server/index.ts", | |
| output: { | |
| file: "./build/server.js", | |
| format: "cjs", | |
| }, | |
| external: [ | |
| "socket.io", | |
| "http", | |
| "node:os", | |
| "express", | |
| "process", | |
| "path", | |
| "node:crypto", | |
| "@block-kit/utils", | |
| ], | |
| plugins: [ | |
| esbuild({ | |
| exclude: [/node_modules/], | |
| target: "esnext", | |
| minify: true, | |
| charset: "utf8", | |
| tsconfig: path.resolve(__dirname, "tsconfig.json"), | |
| }), | |
| ], | |
| }; | |
| }; | |