dsh-sansheng-liubu/sansheng/test/stubs/peer-loader.mjs

10 lines
375 B
JavaScript

export async function resolve(specifier, context, next) {
if (specifier === '@deepseek-ai/dsh-llm') {
return { url: new URL('./dsh-llm.mjs', import.meta.url).href, shortCircuit: true }
}
if (specifier === '@deepseek-ai/dsh-tools') {
return { url: new URL('./dsh-tools.mjs', import.meta.url).href, shortCircuit: true }
}
return next(specifier, context)
}