From df73187e67e6da265cabe6873df692efd113b560 Mon Sep 17 00:00:00 2001 From: ienaga Date: Wed, 12 Nov 2025 22:01:09 +0900 Subject: [PATCH] =?UTF-8?q?#54=20vite.config=E3=81=A8tsconfig=E3=81=AE?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E5=80=A4=E3=81=AE=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- template/tsconfig.json | 7 +++---- template/vite.config.ts | 8 ++++++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 92669f8..12abcc6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/template/tsconfig.json b/template/tsconfig.json index 412884e..2fd20d5 100644 --- a/template/tsconfig.json +++ b/template/tsconfig.json @@ -24,11 +24,10 @@ "vitest/globals" ], - "esModuleInterop": true, - "baseUrl": "./src", + "baseUrl": ".", "paths": { - "@/*": ["*"] - } + "@/*": ["src/*"] + }, }, "include": [ "src/**/*.ts", diff --git a/template/vite.config.ts b/template/vite.config.ts index 603fbba..0e5fd7c 100644 --- a/template/vite.config.ts +++ b/template/vite.config.ts @@ -1,7 +1,7 @@ /// import { defineConfig } from "vitest/config"; -import tsconfigPaths from "vite-tsconfig-paths"; +import path from "path"; import autoLoader from "@next2d/vite-plugin-next2d-auto-loader"; export default defineConfig({ @@ -19,7 +19,6 @@ export default defineConfig({ } }, "plugins": [ - tsconfigPaths(), autoLoader() ], "server": { @@ -36,6 +35,11 @@ export default defineConfig({ } } }, + "resolve": { + "alias": { + "@": path.resolve(process.cwd(), "./src") + } + }, "test": { "globals": true, "environment": "jsdom",