Skip to content

chore(deps): bump vite from 7.3.2 to 8.0.3 - #4759

Merged
pomfrida merged 1 commit into
mainfrom
dependabot/npm_and_yarn/vite-8.0.3
Apr 8, 2026
Merged

chore(deps): bump vite from 7.3.2 to 8.0.3#4759
pomfrida merged 1 commit into
mainfrom
dependabot/npm_and_yarn/vite-8.0.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Apr 1, 2026

Copy link
Copy Markdown
Contributor

Bumps vite from 7.3.2 to 8.0.3.

Release notes

Sourced from vite's releases.

create-vite@8.0.3

Please refer to CHANGELOG.md for details.

v8.0.3

Please refer to CHANGELOG.md for details.

create-vite@8.0.2

Please refer to CHANGELOG.md for details.

v8.0.2

Please refer to CHANGELOG.md for details.

create-vite@8.0.1

Please refer to CHANGELOG.md for details.

v8.0.1

Please refer to CHANGELOG.md for details.

plugin-legacy@8.0.1

Please refer to CHANGELOG.md for details.

create-vite@8.0.0

Please refer to CHANGELOG.md for details.

plugin-legacy@8.0.0

Please refer to CHANGELOG.md for details.

v8.0.0

Please refer to CHANGELOG.md for details.

v8.0.0-beta.18

Please refer to CHANGELOG.md for details.

v8.0.0-beta.17

Please refer to CHANGELOG.md for details.

v8.0.0-beta.16

Please refer to CHANGELOG.md for details.

v8.0.0-beta.15

Please refer to CHANGELOG.md for details.

v8.0.0-beta.14

Please refer to CHANGELOG.md for details.

v8.0.0-beta.13

Please refer to CHANGELOG.md for details.

v8.0.0-beta.12

Please refer to CHANGELOG.md for details.

... (truncated)

Changelog

Sourced from vite's changelog.

8.0.3 (2026-03-26)

Features

Bug Fixes

  • html: cache unfiltered CSS list to prevent missing styles across entries (#22017) (5464190)
  • module-runner: handle non-ascii characters in base64 sourcemaps (#21985) (77c95bf)
  • module-runner: skip re-import if the runner is closed (#22020) (ee2c2cd)
  • optimizer: scan is not resolving sub path import if used in a glob import (#22018) (ddfe20d)
  • ssr: ssrTransform incorrectly rewrites meta identifier inside import.meta when a binding named meta exists (#22019) (cff5f0c)

Miscellaneous Chores

Tests

8.0.2 (2026-03-23)

Features

Bug Fixes

Miscellaneous Chores

  • deps: update dependency @​vitejs/devtools to ^0.1.5 (#21992) (b2dd65b)

8.0.1 (2026-03-19)

Features

Bug Fixes

  • bundled-dev: properly disable inlineConst optimization (#21865) (6d97142)
  • css: lightningcss minify failed when build.target: 'es6' (#21933) (5fcce46)
  • deps: update all non-major dependencies (#21878) (6dbbd7f)
  • dev: always use ESM Oxc runtime (#21829) (d323ed7)
  • dev: handle concurrent restarts in _createServer (#21810) (40bc729)
  • handle + symbol in package subpath exports during dep optimization (#21886) (86db93d)
  • improve no-cors request block error (#21902) (5ba688b)
  • use precise regexes for transform filter to avoid backtracking (#21800) (dbe41bd)
  • worker: require(json) result should not be wrapped (#21847) (0672fd2)

... (truncated)

Commits
  • 572aaca release: v7.2.2
  • 728c8ee fix: revert "refactor: use fs.cpSync (#21019)" (#21081)
  • a532e68 release: v7.2.1
  • 82d2d6c fix(worker): some worker asset was missing (#21074)
  • f83264f refactor(build): rename indexOfMatchInSlice to findPreloadMarker (#21054)
  • 8293de0 release: v7.2.0
  • 2833c55 fix(types): add undefined to optional properties for exactOptionalProperties ...
  • e3a6a83 chore(deps): update rolldown-related dependencies (#21047)
  • b1fd616 fix(css): fallback to sass when sass-embedded platform binary is missing (#21...
  • ad5b3bf fix(module-runner): make getBuiltins response JSON serializable (#21029)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 1, 2026
@dependabot
dependabot Bot requested a review from vnys as a code owner April 1, 2026 07:45
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Apr 1, 2026
@dependabot dependabot Bot added the javascript Pull requests that update javascript code label Apr 1, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vite-8.0.3 branch 2 times, most recently from 8c84148 to b088c67 Compare April 1, 2026 13:41

@pomfrida pomfrida left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Checked the PR — CI is all green and the changes look correct (package.json + lockfile only).

One thing to be aware of: Vite 8 replaces Rollup with Rolldown, and build.rollupOptions is deprecated in favor of build.rolldownOptions. We have 4 config files still using rollupOptions:

  • apps/eds-color-palette-generator/vite.config.ts
  • packages/eds-tokens-sync/vite.config.ts
  • packages/eds-tokens/vite.generate-variables.config.ts
  • packages/eds-tokens-build/vite.config.ts

This works for now (Vite 8 has a compat layer), but should be renamed in a follow-up PR.

Otherwise looks good to merge 👍

@pomfrida

pomfrida commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator

Follow-up PR for the rollupOptionsrolldownOptions rename: #4762

@pomfrida pomfrida self-assigned this Apr 1, 2026
@pomfrida

pomfrida commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator

@claude review

@claude

claude Bot commented Apr 1, 2026

Copy link
Copy Markdown

Claude finished @pomfrida's task in 58s —— View job


PR Review: chore(deps): bump vite from 7.3.1 to 8.0.3

  • Read changed files and gather context
  • Review PR changes
  • Post feedback

Summary

Standard dependabot lockfile bump — only package.json version pins and pnpm-lock.yaml are modified. No application code changes. CI is green. Safe to merge.

Changes reviewed

File Change
apps/eds-color-palette-generator/package.json vite ^7.3.1^8.0.3
packages/eds-tailwind/package.json same
packages/eds-tokens-build/package.json same
packages/eds-tokens-sync/package.json same
packages/eds-tokens/package.json same
packages/eds-utils/package.json same
pnpm-lock.yaml resolved versions updated

Notable: rollupOptions deprecation (already tracked)

Vite 8 ships Rolldown as the bundler and deprecates build.rollupOptions in favour of build.rolldownOptions. Four configs still use the old key:

  • apps/eds-color-palette-generator/vite.config.ts:13
  • packages/eds-tokens-sync/vite.config.ts:21
  • packages/eds-tokens-build/vite.config.ts:41
  • packages/eds-tokens/vite.generate-variables.config.ts:10

Vite 8 keeps a compatibility shim so these work for now, but they will produce deprecation warnings at build time. The follow-up is already tracked in #4762. Fix this →

Verdict

Looks good to merge. No issues with the bump itself. The rollupOptions follow-up in #4762 covers the one post-upgrade housekeeping item.

@dependabot dependabot Bot changed the title chore(deps): bump vite from 7.3.1 to 8.0.3 chore(deps): bump vite from 7.3.2 to 8.0.3 Apr 7, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vite-8.0.3 branch 2 times, most recently from 591255d to 96a85fb Compare April 7, 2026 13:23
@dependabot @github

dependabot Bot commented on behalf of github Apr 7, 2026

Copy link
Copy Markdown
Contributor Author

Dependabot can't authenticate to a private package registry. Because of this, Dependabot cannot update this pull request.

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.1 to 8.0.3.
- [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/create-vite@8.0.3/packages/vite)

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

Signed-off-by: dependabot[bot] <support@github.com>
@pomfrida
pomfrida force-pushed the dependabot/npm_and_yarn/vite-8.0.3 branch from 96a85fb to 323e484 Compare April 8, 2026 10:59
@pomfrida
pomfrida merged commit 912b0cb into main Apr 8, 2026
11 checks passed
@pomfrida
pomfrida deleted the dependabot/npm_and_yarn/vite-8.0.3 branch April 8, 2026 11:06
pomfrida added a commit that referenced this pull request Apr 29, 2026
Vite 8 (Rolldown + lightningcss) bundles consumers re-process
@equinor/eds-tokens CSS through lightningcss; without targets,
lightningcss polyfills light-dark() into a :root-baked var()
pattern that breaks [data-color-scheme="dark"] subtree scoping
in production. Storybook regressed when this repo bumped to
Vite 8 in #4759 (April 2026).

Eliminate light-dark() from the published variables.min.css.
The eds-tokens-build pipeline now emits explicit
[data-color-scheme="dark"] scope rules plus a
prefers-color-scheme media fallback for system dark mode. The
output is correct on every browser at the EDS 2.0 baseline and
is robust against any downstream CSS bundler.

Also configures lightningcss targets in the eds-core-react
Storybook Vite config so subsequent eds-tokens consumers can
follow the same pattern.

Fixes #4863
pomfrida added a commit that referenced this pull request Apr 29, 2026
…#4864)

* fix: emit explicit dark-scope rules instead of light-dark() in tokens

Vite 8 (Rolldown + lightningcss) bundles consumers re-process
@equinor/eds-tokens CSS through lightningcss; without targets,
lightningcss polyfills light-dark() into a :root-baked var()
pattern that breaks [data-color-scheme="dark"] subtree scoping
in production. Storybook regressed when this repo bumped to
Vite 8 in #4759 (April 2026).

Eliminate light-dark() from the published variables.min.css.
The eds-tokens-build pipeline now emits explicit
[data-color-scheme="dark"] scope rules plus a
prefers-color-scheme media fallback for system dark mode. The
output is correct on every browser at the EDS 2.0 baseline and
is robust against any downstream CSS bundler.

Also configures lightningcss targets in the eds-core-react
Storybook Vite config so subsequent eds-tokens consumers can
follow the same pattern.

Fixes #4863

* chore: revert unrelated build-generate-variables churn

These minified build artifacts re-generate on every pipeline run
with cosmetic differences (variable renames from the bundler) and
are unrelated to the dark-scope fix. They should not have been
included in the previous commit.

* test: add unit tests for build-dark-scope

Covers the four behaviours called out in the review:
1. light-dark() declarations are replaced with the light value and
   the three explicit scope blocks are appended
2. var(--ref) values inside light-dark() arguments are preserved
   correctly in both scopes
3. early-exit when no light-dark() declarations exist leaves the
   file unchanged
4. the explicit-dark and prefers-color-scheme media blocks declare
   the same set of dark values

Also documents the regex limitation (one level of nested parens)
in eds-tokens-build/CLAUDE.md so future contributors know when
build-dark-scope.ts needs updating, and fixes a stray-space typo
in the Storybook config comment.

* refactor: extract build-time assertion to scripts/assert-no-light-dark.mjs

The inline node -e assertion used CommonJS require() in a package
declared as type: module, and was hard to read in diffs. Extract
to a standalone ESM file using import. Behavior is identical: the
script exits non-zero with a readable error if variables.min.css
contains light-dark(), --lightningcss-* polyfill markers, or is
missing the [data-color-scheme=dark] override rule.

* refactor: widen :root selector instead of duplicating light scope

The previous build-dark-scope output emitted a separate
[data-color-scheme="light"] block whose declarations duplicated
the light values already in :root — ~100 lines of pure repetition
in variables.css.

Replace that with selector widening: when a :root block contains
light-dark() declarations, change its selector to
`:root, [data-color-scheme="light"]`. This is the same pattern the
existing color-scheme rule uses at the top of the file, and it
preserves the nested-light-inside-dark behaviour (an explicit
[data-color-scheme="light"] descendant of a dark scope re-applies
the light values rather than inheriting dark).

Verified with Playwright: a [data-color-scheme="light"] element
nested inside the dark-mode story wrapper resolves
--eds-color-bg-fill-muted-default to #e1e1e1 (light) rather than

Adds a fifth unit test covering the case where multiple :root
blocks exist but only the dual-bearing one is widened.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant