Skip to content

Commit

Permalink
fix: Inline sourceContents in source maps
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 committed Oct 27, 2023
1 parent 6e332a7 commit 39f6fd1
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
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
@@ -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 39f6fd1

Please sign in to comment.