Commit dca540e
fix(agent-inbox): replace opaque dynamic import with static import() for bundler (#43)
* fix(agent-inbox): replace opaque dynamic import with static import() for bundler
The `importRuntimeModule` helper used `Function('modulePath', 'return import(modulePath)')` to dynamically import IM runtime packages. This pattern is completely opaque to the bundler's static analysis, so `@agent-im-relay/discord`, `@agent-im-relay/feishu`, and `@agent-im-relay/slack` were never bundled into dist — causing ERR_MODULE_NOT_FOUND at runtime after `npm install`.
Replace with direct `import()` expressions that the bundler can statically resolve and inline.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore(agent-inbox): bump version to 1.2.5
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9b36a4b commit dca540e
2 files changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 10 | | |
15 | 11 | | |
16 | 12 | | |
| |||
87 | 83 | | |
88 | 84 | | |
89 | 85 | | |
90 | | - | |
| 86 | + | |
91 | 87 | | |
92 | 88 | | |
93 | 89 | | |
94 | 90 | | |
95 | 91 | | |
96 | 92 | | |
97 | | - | |
| 93 | + | |
98 | 94 | | |
99 | 95 | | |
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
103 | | - | |
| 99 | + | |
104 | 100 | | |
105 | 101 | | |
106 | 102 | | |
0 commit comments