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",