mirror of
https://github.com/langchain-ai/langgraphjs.git
synced 2026-07-22 17:15:25 -04:00
4bf750557f
Turns out that `moduleResolution: node10` will achieve the same result as setting `src/package.json` to `{}` (verified via git worktrees).
Also switching `moduleResolution: bundler` for ESM build, after which I've compared the build output of `libs/checkpoint` via `diff -r -q`.
25 lines
650 B
JSON
25 lines
650 B
JSON
{
|
|
"extends": "@tsconfig/recommended",
|
|
"compilerOptions": {
|
|
"outDir": "../dist",
|
|
"rootDir": "./src",
|
|
"target": "ES2021",
|
|
"lib": ["ES2021", "ES2022.Object", "DOM"],
|
|
"module": "ES2020",
|
|
"moduleResolution": "bundler",
|
|
"esModuleInterop": true,
|
|
"declaration": true,
|
|
"noImplicitReturns": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"useDefineForClassFields": true,
|
|
"strictPropertyInitialization": false,
|
|
"allowJs": true,
|
|
"strict": true,
|
|
"sourceMap": true
|
|
},
|
|
"include": ["src/**/*"],
|
|
"exclude": ["node_modules", "dist", "docs"]
|
|
}
|