Repository navigation
Fix Vite 7 build: replace require() with ESM import, bump CI Node to 20.x - #128
Merged
Merged
Conversation
…ode.js to 20.x in CI Co-authored-by: w8r <26884+w8r@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update rollup from 4.53.3 to 4.59.0
Fix Vite 7 build: replace require() with ESM import, bump CI Node to 20.x
Mar 1, 2026
w8r
marked this pull request as ready for review
March 1, 2026 14:33
w8r
added a commit
that referenced
this pull request
Mar 1, 2026
* Bump rollup from 4.53.3 to 4.59.0 Bumps [rollup](https://github.com/rollup/rollup) from 4.53.3 to 4.59.0. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](rollup/rollup@v4.53.3...v4.59.0) --- updated-dependencies: - dependency-name: rollup dependency-version: 4.59.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Fix Vite 7 build: replace require() with ESM import, bump CI Node to 20.x (#128) * Initial plan * Fix build: replace require() with import in vite.config.ts, upgrade Node.js to 20.x in CI Co-authored-by: w8r <26884+w8r@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: w8r <26884+w8r@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: w8r <26884+w8r@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vite 7 is ESM-only and requires Node.js ≥20.19. Both constraints were violated, causing CI builds to fail.
Changes
vite.config.ts: Replacerequire('./package.json').namewith an ESMimport pkg from './package.json'—require()triggers CJS loading of the config, which then fails to load the ESM-only Vite internals.github/workflows/nodejs.yml: Bumpnode-versionfrom18.x→20.x💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.