Skip to content

Fix vite-plugin TypeScript resolution for Vite 8 compile job#2494

Draft
emmadesilva with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-compile-github-actions-job
Draft

Fix vite-plugin TypeScript resolution for Vite 8 compile job#2494
emmadesilva with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-compile-github-actions-job

Conversation

Copilot AI commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

The compile GitHub Actions job fails after the Vite 8 upgrade because the hyde-vite-plugin package still uses legacy TypeScript module resolution. TypeScript cannot resolve Vite’s published type entrypoints under that setting, which causes the plugin build to fail.

  • Root cause

    packages/vite-plugin compiled with:

    {
      "compilerOptions": {
        "moduleResolution": "node"
      }
    }

    Under Vite 8, that no longer resolves vite's type declarations correctly.

  • Change

    Update the plugin package TypeScript config to use bundler-aware resolution:

    {
      "compilerOptions": {
        "moduleResolution": "bundler"
      }
    }
  • Effect

    This restores type resolution for:

    import { Plugin, ResolvedConfig } from 'vite';

    and unblocks the packages/vite-plugin build used by the compile workflow.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job compile Fix vite-plugin TypeScript resolution for Vite 8 compile job Jul 3, 2026
Copilot AI requested a review from emmadesilva July 3, 2026 22:06
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