-
Notifications
You must be signed in to change notification settings - Fork 507
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
Explore ESBuild #716
Comments
So I've already explored this and it's basically a no-go for much of the same reasons Neither If there's a Rollup plugin for either and easy mapping of existing APIs to them, then it's possible to use them in a select number of cases, but I'm not sure there is. The compatibility aspect is missing and redoing that ourselves would be a ton of work. Some other incompatibilities are that If the compatibility between |
Another point on maturity is that both need time to get robust testing, as correctness issues are plentiful. It doesn't matter how fast a compiler is if it's not correct/robust. We have existing correctness issues in TSDX due to Another toolset in the same space is Rome of course. There's some efficiency gains to be realized by sharing the AST between various tools/phases as well. |
@schickling if you or anyone else wants this, I would suggest doing the research and listing out how the various problems I've listed have been solved. Just asking for it to be reopened is asking for me to do that (free) work for a feature you want. The best issues and PRs lay out everything and make my (volunteer) job easy and fast. I did a quick search and here's a few things:
|
@agilgur5 hey mate!
Fixed :D
Never intended to and, I guess, they will never try to do that.
Here in the issue were some comparisons and
It seems it's still doesn't, but as it's super quick it's not a problem I guess.
Regarding Jest, for now, it's a no go mostly as it's super strict with ES spec regarding modules, so there is no way to do Babel: Also, no AST transformation plugins will be there, as it will be a bottleneck if that would be written in JS I guess. Rollup plugin is there as well as the Webpack You can still write some plugins tho, but it's pretty limiting. Conclusion: The perfect solution will come only with an introduction of Go API for AST plugins for Hope that helps! :) |
Regarding esbuild-jest, recently there was update that claims that it fixed all the issues with mocking that was present with only one limitation, it will produce CJS under the hood and not ES6, which, I guess, is fine, as there still very much experimental ESM support. |
https://github.com/evanw/esbuild
The text was updated successfully, but these errors were encountered: