Skip to content

Commit

Permalink
fix: Inline sourceContents in source maps (#156)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jhnns authored Oct 27, 2023
1 parent 6e332a7 commit 2f5a249
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"compilerOptions": {
"outDir": "build",
"target": "es2015",
"module": "esnext"
"module": "esnext",
"sourceMap": true,
"inlineSources": true,
"declaration": true
},
"include": ["src"],
"exclude": ["src/**/*.test.ts", "src/tests/**/*.ts"]
Expand Down
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
{
"compilerOptions": {
"strict": true,
"sourceMap": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"declaration": true
"forceConsistentCasingInFileNames": true
},
"exclude": ["build/**"]
}

0 comments on commit 2f5a249

Please sign in to comment.