Skip to content
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

chore: replace source-map with trace-mapping #3236

Conversation

sapphi-red
Copy link
Contributor

@sapphi-red sapphi-red commented Apr 23, 2023

Vitest currently uses [email protected] that takes 789kB.
This PR replaces source-map with @jridgewell/trace-mapping.

@jridgewell/trace-mapping is 253kB and Vitest already bundles it because @ampproject/remapping depends on it. So this PR will reduce 789kB.
Also @jridgewell/trace-mapping has a better performance than source-map.

I tested this PR manually by checking the output of running pnpm types in test/typescript.

@stackblitz
Copy link

stackblitz bot commented Apr 23, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@sheremet-va sheremet-va merged commit be0844c into vitest-dev:main Apr 24, 2023
@sheremet-va
Copy link
Member

Thank you!

@sapphi-red sapphi-red deleted the chore/replace-source-map-with-trace-mapping branch April 25, 2023 13:36
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.

3 participants