Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SourceMaps when debugging published embroider #944

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

stefanpenner
Copy link
Collaborator

Currently, our sourcemaps reference the corresponding and non existence source file via
the sourcemap sources property.

For example:

{"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.

Example picture prior to this PR:

image

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.
@stefanpenner stefanpenner merged commit e0ff82a into master Aug 26, 2021
@stefanpenner stefanpenner deleted the improve-debugging branch August 26, 2021 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants