i just add this feature beacause i meet some demand that the same as this issue from esbuild,but the temporary solution will need the build api inject option,so i just turned to find if it have the same effect options in transform api.
but unfortunately,i only found this issue,the author of esbuild said that he was considering removing the transform API in the future and just having people use the build API instead,so i begin to investigate into how to use build api instead of transform api and i found the stdin and wirte options will make the build api work like the transform api in a simple way and support more feature.
i just add this feature beacause i meet some demand that the same as this issue from esbuild,but the temporary solution will need the build api inject option,so i just turned to find if it have the same effect options in transform api.
but unfortunately,i only found this issue,the author of esbuild said that he was considering removing the transform API in the future and just having people use the build API instead,so i begin to investigate into how to use build api instead of transform api and i found the stdin and wirte options will make the build api work like the transform api in a simple way and support more feature.