Skip to content

Commit ff2c163

Browse files
committed
chore: change from moduleResolution 'Node' to 'Bundler', update dev deps
1 parent 1e7ff03 commit ff2c163

File tree

21 files changed

+2995
-3010
lines changed

21 files changed

+2995
-3010
lines changed

apps/navmesh-website/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@pmndrs/assets": "^1.6.0",
12-
"@react-three/drei": "^9.91.0",
12+
"@react-three/drei": "^9.92.3",
1313
"@react-three/fiber": "^8.15.12",
1414
"leva": "^0.9.35",
1515
"react": "^18.2.0",
@@ -18,14 +18,14 @@
1818
"recast-navigation": "workspace:*",
1919
"styled-components": "^6.1.0",
2020
"suspend-react": "^0.1.3",
21-
"three": "^0.156.1",
21+
"three": "^0.159.0",
2222
"tunnel-rat": "^0.1.2",
2323
"zustand": "^4.3.8"
2424
},
2525
"devDependencies": {
2626
"@types/react": "^18.2.11",
2727
"@types/react-dom": "^18.2.8",
28-
"@types/three": "^0.155.0",
28+
"@types/three": "^0.159.0",
2929
"@vitejs/plugin-react": "^4.2.0",
3030
"typescript": "^5.3.2",
3131
"vite": "^4.5.0",

apps/navmesh-website/src/features/export/nav-mesh-to-gltf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
MeshStandardMaterial,
77
Scene,
88
} from 'three';
9-
import { GLTFExporter } from 'three/examples/jsm/exporters/GLTFExporter';
9+
import { GLTFExporter } from 'three/addons';
1010

1111
const navMeshToPositionsAndIndices = (navMesh: NavMesh) => {
1212
const positions: number[] = [];

apps/navmesh-website/src/features/upload/loaders.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@ import {
55
REVISION,
66
WebGLRenderer,
77
} from 'three';
8-
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
9-
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
10-
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader.js';
8+
import { DRACOLoader, FBXLoader, GLTF, GLTFLoader, KTX2Loader, OBJLoader } from 'three/addons';
119
import { MeshoptDecoder } from 'three/examples/jsm/libs/meshopt_decoder.module.js';
12-
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader';
13-
import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
14-
import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader';
1510

1611
const THREE_PATH = `https://unpkg.com/three@0.${REVISION}.x`;
1712

apps/navmesh-website/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"strict": true,
1111
"forceConsistentCasingInFileNames": true,
1212
"module": "ES2022",
13-
"moduleResolution": "Node",
13+
"moduleResolution": "Bundler",
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
1616
"noEmit": true,

examples/node-cjs-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"author": "",
1010
"license": "ISC",
1111
"dependencies": {
12-
"@types/three": "^0.155.0",
12+
"@types/three": "^0.159.0",
1313
"recast-navigation": "0.16.0",
14-
"three": "^0.156.1"
14+
"three": "^0.159.0"
1515
}
1616
}

examples/node-esm-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"author": "",
1111
"license": "ISC",
1212
"dependencies": {
13-
"@types/three": "^0.155.0",
13+
"@types/three": "^0.159.0",
1414
"recast-navigation": "0.16.0",
15-
"three": "^0.156.1"
15+
"three": "^0.159.0"
1616
}
1717
}

examples/parcel-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"build": "parcel build index.html"
88
},
99
"dependencies": {
10-
"@react-three/drei": "^9.91.0",
10+
"@react-three/drei": "^9.92.3",
1111
"@react-three/fiber": "^8.15.12",
1212
"react": "18.2.0",
1313
"recast-navigation": "workspace:^",
14-
"three": "^0.156.1"
14+
"three": "^0.159.0"
1515
},
1616
"devDependencies": {
1717
"parcel": "^2.10.2"

examples/react-scripts-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"private": true,
44
"main": "src/index.js",
55
"dependencies": {
6-
"@react-three/drei": "^9.91.0",
6+
"@react-three/drei": "^9.92.3",
77
"@react-three/fiber": "^8.15.12",
88
"react": "^18.2.0",
99
"react-dom": "^18.2.0",
1010
"react-scripts": "5.0.1",
1111
"recast-navigation": "0.16.0",
1212
"suspend-react": "^0.1.3",
13-
"three": "^0.156.1"
13+
"three": "^0.159.0"
1414
},
1515
"scripts": {
1616
"start": "react-scripts start",

examples/vite-example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
"preview": "vite preview"
99
},
1010
"dependencies": {
11-
"@react-three/drei": "^9.91.0",
11+
"@react-three/drei": "^9.92.3",
1212
"@react-three/fiber": "^8.15.12",
1313
"react": "^18.2.0",
1414
"react-dom": "^18.2.0",
1515
"recast-navigation": "0.16.0",
1616
"suspend-react": "^0.1.3",
17-
"three": "^0.156.1"
17+
"three": "^0.159.0"
1818
},
1919
"devDependencies": {
2020
"@types/react": "^18.2.11",
2121
"@types/react-dom": "^18.2.8",
22-
"@types/three": "^0.155.0",
22+
"@types/three": "^0.159.0",
2323
"@vitejs/plugin-react": "^4.2.0",
2424
"typescript": "^5.3.2",
2525
"vite": "^4.5.0"

examples/vite-example/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"strict": true,
1111
"forceConsistentCasingInFileNames": true,
1212
"module": "ES2022",
13-
"moduleResolution": "Node",
13+
"moduleResolution": "Bundler",
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
1616
"noEmit": true,

0 commit comments

Comments
 (0)