Commit 24fe3ee
committed
fix: make graphql-ws a lazy dependency so ORM works without it
The realtime module is optional — apps that don't use subscriptions
(like the CLI) should not need graphql-ws installed. Changed the
top-level import to a TypeScript import() type (erased at compile
time) and moved the require() call inside the RealtimeManager
constructor so it only executes when realtime is actually used.1 parent cb3bd3f commit 24fe3ee
1 file changed
Lines changed: 6 additions & 2 deletions
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| |||
0 commit comments