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

perf: remove unnecessary dependencies #114

Merged
merged 1 commit into from
Oct 1, 2023
Merged

Conversation

antfu
Copy link
Member

@antfu antfu commented Sep 30, 2023

From 49MB -> 41MB (the main overhead is @babel/standalone from @nuxt/kit it's shared with Nuxt tho).

https://pkg-size.dev/@nuxt%2Ftelemetry

nuxt/nuxt#23380

@codecov-commenter
Copy link

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (e41c397) 82.76% compared to head (69403d7) 83.11%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
+ Coverage   82.76%   83.11%   +0.35%     
==========================================
  Files          19       19              
  Lines         615      616       +1     
  Branches       71       74       +3     
==========================================
+ Hits          509      512       +3     
+ Misses        105      102       -3     
- Partials        1        2       +1     
Files Coverage Δ
src/consent.ts 55.26% <100.00%> (-2.64%) ⬇️
src/utils/detect-package-manager.ts 100.00% <100.00%> (ø)
src/events/files.ts 61.53% <50.00%> (+11.53%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -13,9 +13,9 @@ export interface FilesEvent {
export const files = <EventFactory<FilesEvent>> async function (context) {
const { options } = context.nuxt

const nuxtIgnore = await pathExists(resolve(options.rootDir, '.nuxtignore'))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if they have difference other than the API style.

According to nodejs/node#39960 (comment), the reason for not having fs/promises/exists is because it's not neccessary.

Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@danielroe danielroe merged commit 1b47d6a into nuxt:main Oct 1, 2023
1 check passed
@antfu antfu deleted the feat/deps branch October 1, 2023 08:38
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