Skip to content

Replace vite-tsconfig-paths with native Vite resolution - #1266

Merged
dgee2 merged 1 commit into
mainfrom
codex/1265-remove-vite-tsconfig-paths
Aug 29, 2026
Merged

Replace vite-tsconfig-paths with native Vite resolution#1266
dgee2 merged 1 commit into
mainfrom
codex/1265-remove-vite-tsconfig-paths

Conversation

@dgee2

@dgee2 dgee2 commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Summary

Replace the deprecated vite-tsconfig-paths plugin with Vite's native tsconfig path resolution.

Closes #1265

Changes

  • ui/menu-website/vite.config.ts — enable resolve.tsconfigPaths: true and remove the plugin.
  • ui/menu-website/.storybook/main.ts — enable native tsconfig path resolution and remove the Storybook plugin setup.
  • ui/menu-website/package.json — remove the vite-tsconfig-paths dependency.
  • ui/menu-website/pnpm-lock.yaml — remove the dependency and its now-unused lockfile entries.

This removes the Vite warning while preserving the existing tsconfig alias resolution used by the frontend and Storybook.

Verification

  • pnpm install --frozen-lockfile — passed; lockfile is up to date and dependencies were installed.
  • git diff --check — passed.
  • Lockfile diff check — passed; installation did not modify pnpm-lock.yaml.
  • Stale-reference scan — passed; no vite-tsconfig-paths references remain in the frontend configuration, package manifest, or lockfile.
  • vue-tsc, unit tests, Storybook tests, ESLint, and Vite build — blocked before project code loaded by an environment dependency-tree problem: the installed tree reports an entities CommonJS/ESM mismatch and a missing @babel/code-frame module. These are package-runtime errors, not test failures from this change.

Co-authored-by: Codex <codex@openai.com>
Copilot AI lite review requested due to automatic review settings August 27, 2026 21:45
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

This changes core build/test tooling resolution behavior and the PR notes frontend build/type-check/tests were not run in the current environment.

Pull request overview

This PR removes the vite-tsconfig-paths plugin from the Menu frontend (ui/menu-website) and switches both Vite and Storybook’s Vite builder to Vite v8’s native resolve.tsconfigPaths support, to keep TypeScript path aliases (e.g. @/* and @storybook-config/*) resolving without the plugin.

Changes:

  • Enable native resolve.tsconfigPaths in vite.config.ts and Storybook’s viteFinal override.
  • Remove vite-tsconfig-paths from package.json and clean up pnpm-lock.yaml entries.
File summaries
File Description
ui/menu-website/vite.config.ts Removes vite-tsconfig-paths plugin usage and enables resolve.tsconfigPaths: true for native TS path alias resolution.
ui/menu-website/.storybook/main.ts Removes vite-tsconfig-paths plugin usage and enables config.resolve.tsconfigPaths = true for Storybook’s Vite builder.
ui/menu-website/package.json Drops the vite-tsconfig-paths dependency.
ui/menu-website/pnpm-lock.yaml Removes lockfile entries for vite-tsconfig-paths and its transitive dependencies.
Review details

Files not reviewed (1)

  • ui/menu-website/pnpm-lock.yaml: Generated file
  • Files reviewed: 3/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@dgee2
dgee2 merged commit 5052604 into main Aug 29, 2026
15 checks passed
@dgee2
dgee2 deleted the codex/1265-remove-vite-tsconfig-paths branch August 29, 2026 19:55
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.

Replace vite-tsconfig-paths with Vite native tsconfig path resolution

2 participants