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

Upgrade Vite and Vitest #2574

Merged
merged 3 commits into from
Jan 30, 2025
Merged

Upgrade Vite and Vitest #2574

merged 3 commits into from
Jan 30, 2025

Conversation

dotNomad
Copy link
Collaborator

This PR upgrades dependencies around Vite 6.0:

  • vite itself
  • vitest for testing
  • @vue/tsconfig for an updated TypeScript Vue configuration file
  • @vitest/coverage-v8 for our coverage reporting

Type of Change

    • Bug Fix
    • New Feature
    • Breaking Change
    • Documentation
    • Refactor
    • Tooling

Approach

The approach here was to upgrade all of the dependencies at once and work my way through the Vite 5 -> 6 Migration Guide.

I ran our vitests to make sure those still passed, and ran the extension testing the functionality.

Directions for Reviewers

Pull this down and check that CLI tooling like just and tests behave as expected.

Run the extension itself and test the behavior has not been impacted by upgraded dependencies.

Comment on lines -21 to -27
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler",
},
},
},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was removed as this is now the default behavior. https://vite.dev/guide/migration#sass-now-uses-modern-api-by-default

Copy link
Collaborator

@marcosnav marcosnav left a comment

Choose a reason for hiding this comment

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

Thank you for the dependencies upgrades PRs 🙇

Base automatically changed from dotnomad/up-deps to main January 30, 2025 19:02
@dotNomad dotNomad merged commit daa05a3 into main Jan 30, 2025
13 checks passed
@dotNomad dotNomad deleted the dotnomad/up-vite branch January 30, 2025 19:03
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