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

EREGCSC-2920 -- Update Vite to v6 #1540

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

EREGCSC-2920 -- Update Vite to v6 #1540

wants to merge 16 commits into from

Conversation

PhilR8
Copy link
Contributor

@PhilR8 PhilR8 commented Feb 5, 2025

Resolves EREGCSC-2920

Description

Upgrades Vite, our front end build tool, to latest major version (6.1). Since Vite 6 "strives to avoid breaking changes to ensure most projects can quickly upgrade to the new major [version]" (source), we decided it was worth the time to upgrade, even though some light refactoring was needed due to a blocker that was specific to our setup.

This pull request changes:

  • Upgrades vite to v6.1
  • Upgrades @vitejs/plugin-vue to v5.2
  • Upgrades vite-plugin-vuetify to v2.1
  • Renames all lodash default imports to variable name without leading underscore, as this was breaking watching/transforming/bundling on save. Examples:
    • import _groupBy from "lodash/groupBy"; <-- before
    • import groupBy from "lodash/groupBy"; <-- after
    • import lodashMap from "lodash/map"; <-- after for lodash methods that may be confused for built in native methods
  • Replaces some lodash methods with native equivalents
    • A broader reassessment of our lodash usage may happen in a future story
  • Changes vite config file filetypes to .mjs
  • Updates usage of docker-compose (deprecated) to docker compose in Makefile commands
  • Deletes vestigial prettier config files
  • Updates bundled CSS stylesheet name in base.html due to changes in Vite bundling output behavior

Steps to manually verify this change:

  1. Green check marks
  2. Site works as expected on experimental deployment
  3. Local development works as expected, with builds and transformations being triggered and succeeding on file save

dependabot bot and others added 10 commits February 4, 2025 14:05
Bumps the vite group with 1 update in the /solution/ui/regulations directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).
Bumps the vite group with 1 update in the /solution/ui/regulations/eregs-component-lib directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).
Bumps the vite group with 1 update in the /solution/ui/regulations/eregs-vite directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).


Updates `vite` from 5.4.14 to 6.0.11
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.0.11/packages/vite)

Updates `vite` from 5.4.14 to 6.0.11
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.0.11/packages/vite)

Updates `vite` from 5.4.14 to 6.0.11
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.0.11/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: vite
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: vite
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: vite
...

Signed-off-by: dependabot[bot] <[email protected]>
Copy link

github-actions bot commented Feb 5, 2025

✨ See the Django Site in action

@PhilR8 PhilR8 added the Needs Review This PR needs a code review label Feb 6, 2025
Copy link

github-actions bot commented Feb 6, 2025

✨ See the Django Site in action

explicitly use filetype extensions in imports in a few new places for Vite performance
Copy link

github-actions bot commented Feb 6, 2025

✨ See the CDK Django Site deployed at: ✨

Copy link

github-actions bot commented Feb 6, 2025

✨ See the Django Site in action

Copy link

github-actions bot commented Feb 6, 2025

✨ See the CDK Django Site deployed at: ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review This PR needs a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant