Skip to content

perf: remove utility-types dependency#10063

Closed
timdeschryver wants to merge 1 commit intoparcel-bundler:v2from
timdeschryver:chore/remove-utility-types
Closed

perf: remove utility-types dependency#10063
timdeschryver wants to merge 1 commit intoparcel-bundler:v2from
timdeschryver:chore/remove-utility-types

Conversation

@timdeschryver
Copy link

↪️ Pull Request

I want to propose to remove the utility-types dependency.

As part of the e18e initiative (ecosystem cleanup), we try to reduce the burden of old or big libs and modernize the ecosystem.
We noticed utility-types is added as a dependency within parcel, but it isn't used anymore.

With this change we reduce the traffic with 706.92MB a month, whenever it gets installed as part of @parcel/types-internal.

For reference see e18e/ecosystem-issues#137.

💻 Examples

N/A

🚨 Test instructions

N/A

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

@timdeschryver timdeschryver force-pushed the chore/remove-utility-types branch from c153ca1 to a6826b8 Compare December 29, 2024 17:38
@timdeschryver timdeschryver changed the title chore: remove utility-types dependency perf: remove utility-types dependency Dec 29, 2024
@devongovett
Copy link
Member

It is actually still used, just not in the source code. When the build converts the types from Flow to TypeScript it gets referenced in the output. https://app.unpkg.com/@parcel/types-internal@2.14.3/files/lib/index.d.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants