Skip to content

#54 vite.configとtsconfigの設定値の変更 - #55

Merged
ienaga merged 1 commit into
mainfrom
develop
Nov 12, 2025
Merged

ienaga merged 1 commit into
mainfrom
develop

Conversation

@ienaga

@ienaga ienaga commented Nov 12, 2025

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings November 12, 2025 13:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the path alias configuration by replacing vite-tsconfig-paths plugin with native Vite alias resolution and adjusts TypeScript path mappings accordingly.

  • Removed vite-tsconfig-paths plugin dependency in favor of native Vite resolve.alias configuration
  • Updated TypeScript baseUrl and paths configuration for consistency with the new Vite setup
  • Bumped package version from 3.2.6 to 3.2.7

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
template/vite.config.ts Replaced vite-tsconfig-paths plugin with manual resolve.alias configuration using the path module
template/tsconfig.json Updated baseUrl to project root and adjusted paths mapping to align with new Vite alias configuration; removed esModuleInterop option
package.json Version bump to 3.2.7

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread template/vite.config.ts

import { defineConfig } from "vitest/config";
import tsconfigPaths from "vite-tsconfig-paths";
import path from "path";

Copilot AI Nov 12, 2025

Copy link

Choose a reason for hiding this comment

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

The vite-tsconfig-paths package is no longer used after removing the tsconfigPaths() plugin from the configuration. Consider removing this package from the devDependencies in template/package.json to keep dependencies clean and reduce bundle size.

Copilot uses AI. Check for mistakes.
Comment thread template/vite.config.ts
},
"resolve": {
"alias": {
"@": path.resolve(process.cwd(), "./src")

Copilot AI Nov 12, 2025

Copy link

Choose a reason for hiding this comment

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

Using process.cwd() assumes Vite is always run from the project root directory. Consider using fileURLToPath(new URL('./src', import.meta.url)) for more reliable path resolution that works regardless of the current working directory, or simply use ./src as Vite will resolve it relative to the config file location.

Copilot uses AI. Check for mistakes.
@ienaga
ienaga merged commit 9a916c9 into main Nov 12, 2025
16 checks passed
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