Skip to content

Commit 855fb9b

Browse files
committed
chore: update package dependencies and Vite configuration
- Added new peer dependencies: `camera-controls`, `stats-gl`, `stats.js`, `three-custom-shader-material`, and `three-stdlib` to `package.json` to enhance compatibility with the Three.js ecosystem. - Updated `pnpm-lock.yaml` to reflect the new versions of the added dependencies. - Modified `vite.config.ts` to exclude the newly added dependencies from optimization, ensuring proper module resolution during the build process.
1 parent 92079e9 commit 855fb9b

File tree

3 files changed

+30
-22
lines changed

3 files changed

+30
-22
lines changed

package.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@
5959
},
6060
"peerDependencies": {
6161
"@tresjs/core": ">=4.2.1",
62+
"camera-controls": ">=2.9.0",
63+
"stats-gl": ">=2.0.1",
64+
"stats.js": ">=0.17.0",
6265
"three": ">=0.133",
66+
"three-custom-shader-material": ">=5.4.0",
67+
"three-stdlib": ">=2.35.2",
6368
"vue": ">=3.5.17"
6469
},
6570
"dependencies": {
66-
"@vueuse/core": "^12.3.0",
67-
"camera-controls": "^2.9.0",
68-
"stats-gl": "^2.0.1",
69-
"stats.js": "^0.17.0",
70-
"three-custom-shader-material": "^5.4.0",
71-
"three-stdlib": "^2.35.2"
71+
"@vueuse/core": "^12.3.0"
7272
},
7373
"devDependencies": {
7474
"@release-it/conventional-changelog": "^10.0.1",
@@ -79,6 +79,7 @@
7979
"@typescript-eslint/eslint-plugin": "^8.19.0",
8080
"@typescript-eslint/parser": "^8.19.0",
8181
"@vitejs/plugin-vue": "^6.0.0",
82+
"camera-controls": "^2.9.0",
8283
"eslint": "^9.27.0",
8384
"eslint-plugin-vue": "^10.1.0",
8485
"gsap": "^3.13.0",
@@ -87,7 +88,11 @@
8788
"release-it": "^19.0.2",
8889
"rollup-plugin-analyzer": "^4.0.0",
8990
"rollup-plugin-visualizer": "^5.13.1",
91+
"stats-gl": "^2.0.1",
92+
"stats.js": "^0.17.0",
9093
"three": "^0.178.0",
94+
"three-custom-shader-material": "^5.4.0",
95+
"three-stdlib": "^2.35.2",
9196
"typescript": "^5.8.3",
9297
"unocss": "^66.1.2",
9398
"vite": "^7.0.2",

pnpm-lock.yaml

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vite.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,14 @@ export default defineConfig({
7373
'three': 'Three',
7474
'vue': 'Vue',
7575
'@vueuse/core': 'VueUseCore',
76+
'three-stdlib': 'ThreeStdlib',
77+
'three-custom-shader-material': 'ThreeCustomShaderMaterial',
78+
'camera-controls': 'CameraControls',
7679
},
7780
},
7881
},
7982
},
8083
optimizeDeps: {
81-
exclude: ['three', 'vue', '@tresjs/core', '@vueuse/core'],
84+
exclude: ['three', 'vue', '@tresjs/core', '@vueuse/core', 'three-stdlib', 'three-custom-shader-material', 'camera-controls'],
8285
},
8386
})

0 commit comments

Comments
 (0)