Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@next2d/framework-typescript-template",
"description": "Next2D Framework default TypeScript template.",
"version": "3.2.6",
"version": "3.2.7",
"homepage": "https://next2d.app",
"bugs": "https://github.com/Next2D/framework-typescript-template/issues/new",
"author": "Toshiyuki Ienaga<ienaga@next2d.app>",
Expand Down
7 changes: 3 additions & 4 deletions template/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@
"vitest/globals"
],

"esModuleInterop": true,
"baseUrl": "./src",
"baseUrl": ".",
"paths": {
"@/*": ["*"]
}
"@/*": ["src/*"]
},
},
"include": [
"src/**/*.ts",
Expand Down
8 changes: 6 additions & 2 deletions template/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference types="vitest" />

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

Copilot AI Nov 12, 2025

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.
import autoLoader from "@next2d/vite-plugin-next2d-auto-loader";

export default defineConfig({
Expand All @@ -19,7 +19,6 @@ export default defineConfig({
}
},
"plugins": [
tsconfigPaths(),
autoLoader()
],
"server": {
Expand All @@ -36,6 +35,11 @@ export default defineConfig({
}
}
},
"resolve": {
"alias": {
"@": path.resolve(process.cwd(), "./src")
Copy link

Copilot AI Nov 12, 2025

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.
}
},
"test": {
"globals": true,
"environment": "jsdom",
Expand Down
Loading