Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 4d87a00

Browse files
roomote[bot]roomote
andauthored
fix: add stub-baseten-native esbuild plugin to nightly build config (#11285)
Co-authored-by: Roo Code <roomote@roocode.com>
1 parent d7714e4 commit 4d87a00

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

apps/vscode-nightly/esbuild.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@ async function main() {
5757
* @type {import('esbuild').Plugin[]}
5858
*/
5959
const plugins = [
60+
{
61+
// Stub out @basetenlabs/performance-client which contains native .node
62+
// binaries that esbuild cannot bundle. This module is only used by
63+
// @ai-sdk/baseten for embedding models, not for chat completions.
64+
name: "stub-baseten-native",
65+
setup(build) {
66+
build.onResolve({ filter: /^@basetenlabs\/performance-client/ }, (args) => ({
67+
path: args.path,
68+
namespace: "stub-baseten-native",
69+
}))
70+
build.onLoad({ filter: /.*/, namespace: "stub-baseten-native" }, () => ({
71+
contents: "module.exports = { PerformanceClient: class PerformanceClient {} };",
72+
loader: "js",
73+
}))
74+
},
75+
},
6076
{
6177
name: "copyPaths",
6278
setup(build) {

0 commit comments

Comments
 (0)