Skip to content

Commit df73187

Browse files
committed
#54 vite.configとtsconfigの設定値の変更
1 parent 9ea6008 commit df73187

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@next2d/framework-typescript-template",
33
"description": "Next2D Framework default TypeScript template.",
4-
"version": "3.2.6",
4+
"version": "3.2.7",
55
"homepage": "https://next2d.app",
66
"bugs": "https://github.com/Next2D/framework-typescript-template/issues/new",
77
"author": "Toshiyuki Ienaga<ienaga@next2d.app>",

template/tsconfig.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424
"vitest/globals"
2525
],
2626

27-
"esModuleInterop": true,
28-
"baseUrl": "./src",
27+
"baseUrl": ".",
2928
"paths": {
30-
"@/*": ["*"]
31-
}
29+
"@/*": ["src/*"]
30+
},
3231
},
3332
"include": [
3433
"src/**/*.ts",

template/vite.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference types="vitest" />
22

33
import { defineConfig } from "vitest/config";
4-
import tsconfigPaths from "vite-tsconfig-paths";
4+
import path from "path";
55
import autoLoader from "@next2d/vite-plugin-next2d-auto-loader";
66

77
export default defineConfig({
@@ -19,7 +19,6 @@ export default defineConfig({
1919
}
2020
},
2121
"plugins": [
22-
tsconfigPaths(),
2322
autoLoader()
2423
],
2524
"server": {
@@ -36,6 +35,11 @@ export default defineConfig({
3635
}
3736
}
3837
},
38+
"resolve": {
39+
"alias": {
40+
"@": path.resolve(process.cwd(), "./src")
41+
}
42+
},
3943
"test": {
4044
"globals": true,
4145
"environment": "jsdom",

0 commit comments

Comments
 (0)