Skip to content

Commit b4c3691

Browse files
committed
feat: add vite include (#2)
1 parent d03d27a commit b4c3691

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

app/Live2DApp.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { Live2dTipsHandler } from '../helpers/tips'
33
import type { Live2dOptions, Live2dTips } from '../types'
44
import { Graphics } from '@pixi/graphics'
55
import { settings } from '@pixi/settings'
6-
import { utils } from 'pixi.js'
76
import { SoundManager } from 'pixi-live2d-display'
87
import { save } from '../helpers/storage'
98
import { ModelEntity } from './ModelEntity'

app/Live2DModel.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export class Live2DModel extends BaseLive2DModel {
7070
}
7171

7272
startHitMotion(hitAreaNames: string[]) {
73-
debugger
7473
for (let area of hitAreaNames) {
7574
area = area.toLowerCase()
7675

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
"build": "tsx scripts/build.ts"
2424
},
2525
"dependencies": {
26-
"pixi-live2d-display": "0.5.0-beta",
26+
"pixi-live2d-display": "^0.5.0-beta",
2727
"pixi.js": "^7.4.2",
28-
"stats.js": "^1.0.0"
28+
"stats.js": "^1.0.0",
29+
"url": "^0.11.4"
2930
},
3031
"devDependencies": {
3132
"@types/lodash-es": "^4.17.12",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"moduleResolution": "node",
99
"outDir": "./dist",
1010
"esModuleInterop": true,
11-
"skipLibCheck": true,
11+
"skipLibCheck": true
1212
},
1313
"include": ["app", "helpers", "types/**/*.ts"],
1414
"exclude": ["node_modules", "lib"]

valaxy.config.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { defineTheme } from 'valaxy'
2+
3+
export default defineTheme({
4+
vite: {
5+
optimizeDeps: {
6+
include: [
7+
'@pixi/utils',
8+
'@pixi/graphics',
9+
'@pixi/settings',
10+
'@pixi/app',
11+
'@pixi/core',
12+
'@pixi/extract',
13+
'@pixi/ticker',
14+
],
15+
},
16+
},
17+
})

0 commit comments

Comments
 (0)