Commit 28055c4
committed
Fix CI: use bundler module resolution instead of ESM package type
The "type": "module" in package.json caused the CJS esbuild bundle to be
parsed as ESM at runtime, breaking require() calls for Node.js built-ins.
Instead, use moduleResolution: "bundler" in tsconfig which resolves ESM
exports fields correctly while keeping the project as CJS. Revert
jest.config.cjs back to jest.config.js.
https://claude.ai/code/session_01QwnXfWH2ELHXvNgijYTeM11 parent 0de7c93 commit 28055c4
3 files changed
+2
-3
lines changedFile renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments