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

Feature Request: transform() input and output strings #19

Open
andykais opened this issue Oct 4, 2018 · 1 comment
Open

Feature Request: transform() input and output strings #19

andykais opened this issue Oct 4, 2018 · 1 comment

Comments

@andykais
Copy link

andykais commented Oct 4, 2018

Following up the discussion of #5, I have looked over instructions on building a loader, and I should be able to build a simple webpack loader that transforms certain files into runtime check files. Basically, the webpack loader will compile certain ts files with ts-runtime into javascript, then those files will be passed through ts-loader or awesome-typescript-loader as normal.

To make this work however, I need transform() to be able to take in a string and output a string or buffer. Webpack expects each loader to act this way, it is how we are able to chain loaders together. Is a change like this possible?

@fabiandev
Copy link
Owner

Hi @andykais, thanks for following up the discussion.
I will have a look asap and will get back to you!

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

No branches or pull requests

2 participants