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

"after" custom transformer seems to be called before the JS transformation. #32731

Open
blaky opened this issue Aug 6, 2019 · 0 comments
Open
Assignees
Labels
Needs Investigation This issue needs a team member to investigate its status.

Comments

@blaky
Copy link

blaky commented Aug 6, 2019

Hi there,

I am trying to implement an after custom transformer as I am planning to make changes to the transpiled JS code.
According to the inline documentation (Custom transformers to evaluate after built-in .js transformations.), the transformer should be called after the source file is transpiled to JS. In the transformer API, the only provided argument is a "SourceFile" object which has no reference to the JS code (or at least I couldn't find it).

What's the point of having an after transformer if you don't get access to the transformed source code, nor have possibilities to change it? Is it a bug or is it like that on purpose?

Thanks in advance

@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Investigation This issue needs a team member to investigate its status.
Projects
None yet
Development

No branches or pull requests

3 participants