← All tasks
javascripttesting-library/jest-dom #614Not a task: not reproduced

Drop an unused @babel/runtime dependency

envgap__testing-library__jest-dom-614

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
d02e80b1b7ed38090975bdfe49ab8063eec040f5
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

testing-library/jest-dom #614 · read the original issue
### Describe the feature you'd like:



Recently, the [Ecosystem Performance](https://e18e.dev/) was formed to cleanup, speedup, levelup the JavaScript Ecosystem.

Socket Security team wrote a blog post about it https://socket.dev/blog/javascript-community-launches-e18e-initiative-to-improve-ecosystem-performance



I noticed that there is a dependency `@babel/runtime` but I did not find any usage of it. I tried locally to remove it and all tests are passing and build command is working.



This dependency adds around 240kb to node_modules which sounds not that big, but considering that `@testing-library/jest-dom` has almost 11 million weekly downloads I believe this change will have an impact on the JS ecosystem.

<img width="538" alt="pkg-size @testing-library:jest-dom" src="https://github.com/user-attachments/assets/0bf47927-e385-45ef-8645-1f1cf0dc2cf4">

Screenshot is taken from the [pkg-size.dev](https://pkg-size.dev/@testing-library%2Fjest-dom)



### Suggested implementation:

Remove the `@babel/runtime` as a dependency.



### Describe alternatives you've considered:

As I understand from the docs of `@babel/runtime`, it should be used on a build stage, so it can be moved to a devDependency if it is actually needed, so end users will not load this to their node_modules on each install.



### Teachability, Documentation, Adoption, Migration Strategy:



I'm willing to send a PR for this 😊 

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]