mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: add stub-baseten-native esbuild plugin to nightly build config (#11285)
Co-authored-by: Roo Code <roomote@roocode.com>
This commit is contained in:
parent
d7714e4e07
commit
4d87a004a5
1 changed files with 16 additions and 0 deletions
|
|
@ -57,6 +57,22 @@ async function main() {
|
|||
* @type {import('esbuild').Plugin[]}
|
||||
*/
|
||||
const plugins = [
|
||||
{
|
||||
// Stub out @basetenlabs/performance-client which contains native .node
|
||||
// binaries that esbuild cannot bundle. This module is only used by
|
||||
// @ai-sdk/baseten for embedding models, not for chat completions.
|
||||
name: "stub-baseten-native",
|
||||
setup(build) {
|
||||
build.onResolve({ filter: /^@basetenlabs\/performance-client/ }, (args) => ({
|
||||
path: args.path,
|
||||
namespace: "stub-baseten-native",
|
||||
}))
|
||||
build.onLoad({ filter: /.*/, namespace: "stub-baseten-native" }, () => ({
|
||||
contents: "module.exports = { PerformanceClient: class PerformanceClient {} };",
|
||||
loader: "js",
|
||||
}))
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "copyPaths",
|
||||
setup(build) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue