Commit 69ec91c
committed
fix: build api CLI as ESM to support trpc-cli
trpc-cli requires ESM with top-level await, which can't be loaded via
CommonJS require(). Bundle api.ts separately using esbuild as ESM (.mjs)
and use native import() via Function constructor to bypass TypeScript's
conversion to require().
Also adds `make mux` target for convenient CLI invocation.1 parent 1dc4f78 commit 69ec91c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments