testcafe icon indicating copy to clipboard operation
testcafe copied to clipboard

Use esbuild instead of babel

Open mixtur opened this issue 1 year ago • 0 comments

What is your Scenario?

Not applicable

What are you suggesting?

I was invstigating why do we have 2000+ transitive dependencies in our project, and figured that significant part of those are coming from testcafe.

When looking at your dependencies graph, I've noticed that approximately half of your dependncies have something to do with babel. https://npmgraph.js.org/?q=testcafe#zoom=h&select=exact%3A%40babel%2Fpreset-env%407.24.5

From my experience, esbuild convers most of the babel use cases and it is also much faster. Can you please consider migrating from babel to something else? If not esbuild, then maybe swc?

I imagine, that testing framework like yours probably requires, some crazy code transformations that are hardly possible with other transpilers, but maybe this is a design decision to reconsider as well?

What alternatives have you considered?

No response

Additional context

No response

mixtur avatar May 23 '24 10:05 mixtur