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

[build] - Transform plugins #162

Closed
rkovalov opened this issue Feb 24, 2021 · 2 comments
Closed

[build] - Transform plugins #162

rkovalov opened this issue Feb 24, 2021 · 2 comments

Comments

@rkovalov
Copy link

rkovalov commented Feb 24, 2021

Is there way somehow apply plugin for transform files ?
Target is renaming scss import to css after successfully compiling js.
I want to run concurrently for ex. building css by gulp with node-sass

Or better to play with @ts-tools/transpile before running build script ?

Sorry for a lot of question, hope u are doing best :)

@AviVahl
Copy link
Owner

AviVahl commented Feb 24, 2021

Since @ts-tools/build only has a CLI interface (ts-build), and there's no standard way of pointing tooling to custom transformers, I didn't add support for applying transformations.

You could probably use the @ts-tools/transpile package to do stuff programmatically, passing in the "transformers" option to transpileCached. Much more manual, but then you have full control.

I find that in the more complex use cases, using typescript's API directly might be the better choice (unless you need the added caching layer).

@AviVahl
Copy link
Owner

AviVahl commented Apr 16, 2021

"build" package has now been removed from repository. last published one still available from npm.

@AviVahl AviVahl closed this as completed Apr 16, 2021
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