Skip to content

Commit

Permalink
feat: add vite include (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
WRXinYue committed Oct 14, 2024
1 parent d03d27a commit b4c3691
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
1 change: 0 additions & 1 deletion app/Live2DApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Live2dTipsHandler } from '../helpers/tips'
import type { Live2dOptions, Live2dTips } from '../types'
import { Graphics } from '@pixi/graphics'
import { settings } from '@pixi/settings'
import { utils } from 'pixi.js'
import { SoundManager } from 'pixi-live2d-display'
import { save } from '../helpers/storage'
import { ModelEntity } from './ModelEntity'
Expand Down
1 change: 0 additions & 1 deletion app/Live2DModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export class Live2DModel extends BaseLive2DModel {
}

startHitMotion(hitAreaNames: string[]) {
debugger
for (let area of hitAreaNames) {
area = area.toLowerCase()

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
"build": "tsx scripts/build.ts"
},
"dependencies": {
"pixi-live2d-display": "0.5.0-beta",
"pixi-live2d-display": "^0.5.0-beta",
"pixi.js": "^7.4.2",
"stats.js": "^1.0.0"
"stats.js": "^1.0.0",
"url": "^0.11.4"
},
"devDependencies": {
"@types/lodash-es": "^4.17.12",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"moduleResolution": "node",
"outDir": "./dist",
"esModuleInterop": true,
"skipLibCheck": true,
"skipLibCheck": true
},
"include": ["app", "helpers", "types/**/*.ts"],
"exclude": ["node_modules", "lib"]
Expand Down
17 changes: 17 additions & 0 deletions valaxy.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineTheme } from 'valaxy'

export default defineTheme({
vite: {
optimizeDeps: {
include: [
'@pixi/utils',
'@pixi/graphics',
'@pixi/settings',
'@pixi/app',
'@pixi/core',
'@pixi/extract',
'@pixi/ticker',
],
},
},
})

0 comments on commit b4c3691

Please sign in to comment.