Skip to content

Commit 931be1f

Browse files
B4nanclaude
andauthored
chore: stop publishing broken declaration and source maps (#925)
The published tarball excludes `src` but ships `.d.ts.map`/`.js.map` that reference `../src/*.ts`, so the maps never resolve — editors fall back to the compiled `.d.ts`/`.js` instead of the original source. Disabling `declarationMap`/`sourceMap` stops emitting these dead maps and shrinks the tarball. The rsbuild browser bundle sourcemap (which embeds its own sources) is unaffected. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 496f751 commit 931be1f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"moduleResolution": "Node16",
88
"outDir": "dist",
99
"rootDir": "src",
10-
"skipLibCheck": true
10+
"skipLibCheck": true,
11+
"declarationMap": false,
12+
"sourceMap": false
1113
},
1214
"include": ["./src/**/*"]
1315
}

0 commit comments

Comments
 (0)