mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
fix(plugins): keep openclaw chunks native in jiti (#88384)
* fix(plugins): keep OpenClaw chunks native in jiti Co-authored-by: Vincent Koc <vincentkoc@ieee.org> * docs(changelog): move plugin fix to unreleased --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
This commit is contained in:
@@ -10,6 +10,7 @@ Docs: https://docs.openclaw.ai
|
||||
|
||||
- **WhatsApp restart recovery:** stop automatic restart loops after logged-out or connection-replaced disconnects until the account reconnects. (#78511) Thanks @openperf.
|
||||
- **Local Gateway CLI auth:** keep loopback CLI token/password calls off durable device scopes so read probes cannot block later write/admin commands behind a stale pairing baseline. (#95997) Thanks @vincentkoc.
|
||||
- **Plugin module identity:** keep OpenClaw package chunks on Node's native module graph when jiti transforms plugin entries, preventing duplicate evaluation and class identity drift. (#88384) Thanks @vincentkoc.
|
||||
- **iMessage group warnings:** suppress the false drop-all startup warning when an effective group sender allowlist can admit groups, and point true empty-allowlist configurations at the correct remedy. (#100046)
|
||||
- **Control UI mobile login:** keep Gateway recovery guidance visible after connection failures, make the disconnected gate scroll safely on constrained screens, and improve mobile keyboard and tap-target behavior. (#100208)
|
||||
|
||||
|
||||
@@ -2034,6 +2034,7 @@ describe("plugin sdk alias helpers", () => {
|
||||
const options = buildPluginLoaderJitiOptions({});
|
||||
|
||||
expect(options.tryNative).toBe(true);
|
||||
expect(options.nativeModules).toEqual(["openclaw"]);
|
||||
expect(options.interopDefault).toBe(true);
|
||||
expect(options.extensions).toContain(".js");
|
||||
expect(options.extensions).toContain(".ts");
|
||||
|
||||
@@ -2031,6 +2031,9 @@ export function buildPluginLoaderJitiOptions(
|
||||
// Prefer Node's native sync ESM loader for built dist/*.js modules so
|
||||
// bundled plugins and plugin-sdk subpaths stay on the canonical module graph.
|
||||
tryNative: true,
|
||||
// When jiti must transform a plugin entry, keep OpenClaw's own package
|
||||
// chunks on the native module graph instead of re-evaluating them in jiti.
|
||||
nativeModules: ["openclaw"],
|
||||
extensions: [".ts", ".tsx", ".mts", ".cts", ".mtsx", ".ctsx", ".js", ".mjs", ".cjs", ".json"],
|
||||
...(hasAliases
|
||||
? {
|
||||
|
||||
Reference in New Issue
Block a user