mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 00:50:43 +00:00
fix(plugin): preserve sdk alias fallback for native loads
This commit is contained in:
@@ -282,7 +282,10 @@ function createPluginModuleLoader(params: {
|
||||
...rest,
|
||||
);
|
||||
}
|
||||
const native = tryNativeRequireJavaScriptModule(target, { allowWindows: true });
|
||||
const native = tryNativeRequireJavaScriptModule(target, {
|
||||
allowWindows: true,
|
||||
fallbackOnMissingDependency: true,
|
||||
});
|
||||
if (native.ok) {
|
||||
pluginModuleLoaderStats.nativeHits += 1;
|
||||
return native.moduleExport;
|
||||
|
||||
Reference in New Issue
Block a user