Download ext/vscode/build.js from hongcoding/agentlens: direct link, hf CLI and curl.
- Browser
- Download file 584 Bytes
-
https://huggingface.co/datasets/hongcoding/agentlens/resolve/main/ext/vscode/build.js
- Command line
-
hf download hf://datasets/hongcoding/agentlens/ext/vscode/build.js
-
curl -L -o build.js https://huggingface.co/datasets/hongcoding/agentlens/resolve/main/ext/vscode/build.js
584 Bytes
| // Bundle the VS Code extension with esbuild (handles ESM core + CJS extension) | |
| const { build } = require("esbuild"); | |
| const path = require("path"); | |
| build({ | |
| entryPoints: [path.join(__dirname, "src/extension.ts")], | |
| bundle: true, | |
| outfile: path.join(__dirname, "out/extension.js"), | |
| external: ["vscode"], | |
| format: "cjs", | |
| platform: "node", | |
| target: "node20", | |
| sourcemap: true, | |
| minify: false, | |
| }).then(() => { | |
| console.log("✅ Extension bundled to out/extension.js"); | |
| }).catch((err) => { | |
| console.error("❌ Build failed:", err); | |
| process.exit(1); | |
| }); | |