Skip to content

Commit 931eac0

Browse files
authored
Fix source maps (#192)
* Update TypeScript configuration files to enable source maps and inline sources - Added "sourceMap" and "inlineSources" options to the root tsconfig.json and the lib package's tsconfig.json for improved debugging. - Removed "sourceMap" option from the blocks package's tsconfig.json to maintain consistency across configurations. * chore: add changeset for TypeScript source map inclusion - Introduced a new changeset file to document the inclusion of TypeScript source files in source maps for improved debugging in the @playcanvas/blocks and @playcanvas/react packages.
1 parent 842abe2 commit 931eac0

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.changeset/bumpy-grapes-give.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@playcanvas/blocks": patch
3+
"@playcanvas/react": patch
4+
---
5+
6+
Include TS Source inside source maps

packages/blocks/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"declaration": true,
88
"declarationDir": "./dist",
99
"forceConsistentCasingInFileNames": true,
10-
"sourceMap": true,
1110
"removeComments": false,
1211
"noUnusedLocals": true,
1312
"noUnusedParameters": true,

packages/lib/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4+
"sourceMap": true,
5+
"inlineSources": true,
46
"allowSyntheticDefaultImports": true,
57
"esModuleInterop": true,
68
"allowJs": true,
79
"declaration": true,
810
"declarationDir": "./dist",
911
"forceConsistentCasingInFileNames": true,
10-
"sourceMap": true,
1112
"removeComments": false,
1213
"noUnusedLocals": true,
1314
"noUnusedParameters": true,

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"target": "ES2022",
44
"module": "ESNext",
55
"strict": true,
6+
"sourceMap": true,
7+
"inlineSources": true,
68
"esModuleInterop": true,
79
"skipLibCheck": true,
810
"jsx": "react-jsx",

0 commit comments

Comments
 (0)