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

Allow typescript transforms via Compiler API #5524

Closed
jimsimon opened this issue May 17, 2020 · 1 comment
Closed

Allow typescript transforms via Compiler API #5524

jimsimon opened this issue May 17, 2020 · 1 comment

Comments

@jimsimon
Copy link

jimsimon commented May 17, 2020

I'm interested in writing a typescript transform that rewrites all of the Import declarations to named identifiers and outputs an import map. The idea being that this could be the basis for a frontend dependency management tool that could handle semver resolution and deduping transitive dependencies. As far as I can tell there's no way to pass transforms via the Compiler API. Adding the ability to do so could potentially open up a wide range of output customizations.

Alternatively I could write a tool that does that before deno is called, but I'd prefer the above approach because aking multiple passes at the source code would be slower than making a single pass

@bartlomieju
Copy link
Member

Duplicate of #3354

@bartlomieju bartlomieju marked this as a duplicate of #3354 May 17, 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