Skip to content

Commit

Permalink
fix: include sources in source maps
Browse files Browse the repository at this point in the history
When running projects with this library, webpack and source-map-loader,
you get "Failed to parse source map" errors. The source is not included
in the package, while the source maps reference the files.

Added inlineSource: true to tsconfig to include source in source maps.
  • Loading branch information
Gido Manders authored and gidomanders committed Jan 11, 2022
1 parent 48df895 commit db80c71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"outDir": "./lib",
"removeComments": true,
"sourceMap": true,
"inlineSources": true,
"strict": true,
"target": "es6",
"jsx": "react",
Expand All @@ -28,4 +29,4 @@
"exclude": [
"node_modules",
]
}
}

0 comments on commit db80c71

Please sign in to comment.