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

sourcefile ignored in TransformFailure #131

Closed
hgl opened this issue May 22, 2020 · 1 comment
Closed

sourcefile ignored in TransformFailure #131

hgl opened this issue May 22, 2020 · 1 comment

Comments

@hgl
Copy link

hgl commented May 22, 2020

When there is a compilation error, it seem the the thrown TransformFailure error's file property is always /input.js, even if the sourcefile option was passed.

It'd be great if that property could also reflect the sourcefile value

@evanw
Copy link
Owner

evanw commented May 23, 2020

Yes, this is a good point. I'm planning to unify the transform API with stdin/stdout support since they both are a way to do file-less input. This would be good to fix as a part of that unification.

@evanw evanw closed this as completed in 411fcca Jun 11, 2020
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

No branches or pull requests

2 participants