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

Respect input source maps #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Respect input source maps #6

wants to merge 1 commit into from

Conversation

oleg-slapdash
Copy link

@oleg-slapdash oleg-slapdash commented Jun 28, 2021

This PR borrows business logic from https://github.com/facebook/jest/blob/master/packages/babel-jest/src/index.ts#L227 babel-jest transformer and uses the same approach to emit source maps. This in turn enables correct stack traces and allows to use this plugin on a transpiled JavaScript. For example, we can use transpiled TypeScript to run tests and get correct errors pointing to TypeScript file.

@oleg-slapdash
Copy link
Author

Updated PR to handle file names properly

@oleg-slapdash oleg-slapdash reopened this Jun 29, 2021
@dko-slapdash
Copy link

dko-slapdash commented Oct 6, 2021

@ActuallyACat Is there a chance this PR gets merged? It works just perfectly for more than 3 months so far, saved us so much time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants