egoist / esbuild-register

Transpile JSX, TypeScript and esnext features on the fly with esbuild
MIT License
990 stars 52 forks source link

feat:use the build api instead of transform api to support inject etc. #71

Closed AisonSu closed 1 year ago

AisonSu commented 2 years ago

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.

reconbot commented 2 years ago

This would also let us use plugins

reconbot commented 1 year ago

🎉 🙏

egoist commented 1 year ago

@reconbot plugins is not possible with sync api

egoist commented 1 year ago

:tada: This PR is included in version 3.4.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: