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

File preprocess with external resolve #403

Closed
andr2 opened this issue Sep 7, 2016 · 1 comment
Closed

File preprocess with external resolve #403

andr2 opened this issue Sep 7, 2016 · 1 comment
Labels

Comments

@andr2
Copy link

andr2 commented Sep 7, 2016

I want to use preprocess library with gulp-typescript with external resolve.

There is Host.getSourceFile function in host.js. How can I override fs.readFileSync to bypass file-contents through preprocess lib?

Or maybe I should use a different approach?

@ivogabe
Copy link
Owner

ivogabe commented Sep 17, 2016

You cannot integrate it in gulp-typescript in Host.getSourceFile. You could however pipe these files through another plugin by opening those files with gulp.src. If you cannot write a glob for these files you would benefit from #190 (comment).

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

No branches or pull requests

2 participants