Skip to content

Commit

Permalink
Fix SourceMaps when debugging published embroider (#944)
Browse files Browse the repository at this point in the history
Currently, our sourcemaps reference the corresponding and non existence source file via
the sourcemap sources property.

For example:

```json
{"version":3,"file":"add-to-tree.js","sourceRoot":"","sources":["add-to-tree.ts"] ...
```

Unfortunately, as we do not publish our `.ts` files, debugging tools get
confused. To address this debugging issue, we now configure TypeScript
to inline said sources in the sourcemap file.
  • Loading branch information
stefanpenner authored Aug 26, 2021
1 parent c96ba0f commit e0ff82a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"sourceMap": true,
"inlineSources": true,
"experimentalDecorators": true,
"allowUnreachableCode": false,
"strict": true,
Expand Down

0 comments on commit e0ff82a

Please sign in to comment.