Skip to content

Commit 2f5a249

Browse files
authored
fix: Inline sourceContents in source maps (#156)
The original sources that the source map were pointing to were not included in the package build. This change inlines the sourceContents into the source map. Fixes Error when update version (Webpack) #149
1 parent 6e332a7 commit 2f5a249

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tsconfig.build.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"compilerOptions": {
44
"outDir": "build",
55
"target": "es2015",
6-
"module": "esnext"
6+
"module": "esnext",
7+
"sourceMap": true,
8+
"inlineSources": true,
9+
"declaration": true
710
},
811
"include": ["src"],
912
"exclude": ["src/**/*.test.ts", "src/tests/**/*.ts"]

tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
{
22
"compilerOptions": {
33
"strict": true,
4-
"sourceMap": true,
54
"esModuleInterop": true,
65
"module": "esnext",
76
"moduleResolution": "node",
87
"resolveJsonModule": true,
9-
"forceConsistentCasingInFileNames": true,
10-
"declaration": true
8+
"forceConsistentCasingInFileNames": true
119
},
1210
"exclude": ["build/**"]
1311
}

0 commit comments

Comments
 (0)