Skip to content

Commit eacdc33

Browse files
buffcodeclaude
andcommitted
build: emit sourcemaps for CJS and ESM builds
Enable sourceMap, declarationMap, and inlineSources in the shared tsconfig so both build flavors emit .js.map and .d.ts.map files with TypeScript sources embedded. Maps ship automatically via the existing files: ["dist"] entry in package.json, giving consumers readable stack traces pointing at src/*.ts. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 4294f8c commit eacdc33

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎tsconfig.base.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
"noEmitOnError": true,
1313
"noImplicitAny": true,
1414
"noImplicitReturns": true,
15-
"declaration": true
15+
"declaration": true,
16+
"declarationMap": true,
17+
"sourceMap": true,
18+
"inlineSources": true
1619
},
1720
"include": [
1821
"./src/**/*"

0 commit comments

Comments
 (0)