mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 12:00:22 +00:00
refactor(plugins): decouple bundled plugin runtime loading
This commit is contained in:
@@ -830,7 +830,7 @@ export function loadOpenClawPlugins(options: PluginLoadOptions = {}): PluginRegi
|
||||
const getJiti = (modulePath: string) => {
|
||||
const tryNative = shouldPreferNativeJiti(modulePath);
|
||||
// Pass loader's moduleUrl so the openclaw root can always be resolved even when
|
||||
// loading external plugins from outside the installation directory (e.g. ~/.openclaw/extensions/).
|
||||
// loading external plugins from outside the managed install directory.
|
||||
const aliasMap = buildPluginLoaderAliasMap(
|
||||
modulePath,
|
||||
process.argv[1],
|
||||
|
||||
Reference in New Issue
Block a user