mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 18:10:22 +00:00
plugins: disable native jiti loading under bun
This commit is contained in:
@@ -422,6 +422,10 @@ export function buildPluginLoaderJitiOptions(aliasMap: Record<string, string>) {
|
||||
}
|
||||
|
||||
export function shouldPreferNativeJiti(modulePath: string): boolean {
|
||||
const versions = process.versions as { bun?: string };
|
||||
if (typeof versions.bun === "string") {
|
||||
return false;
|
||||
}
|
||||
switch (path.extname(modulePath).toLowerCase()) {
|
||||
case ".js":
|
||||
case ".mjs":
|
||||
|
||||
Reference in New Issue
Block a user