Skip to content

Commit

Permalink
Docs: Add instructions for improving editor auto-completion with jsco…
Browse files Browse the repository at this point in the history
…nfig or tsconfig (#30444)
  • Loading branch information
Makio64 authored Feb 3, 2025
1 parent 0eef54a commit 823833f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/manual/en/introduction/Installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,23 @@ <h3>Development</h3>
npm installs the code for each dependency in a new <i>node_modules/</i> folder. When Vite builds your application, it sees imports for 'three' and pulls three.js files automatically from this folder. The <i>node_modules/</i> folder is used only during development, and shouldn't be uploaded to your web hosting provider or committed to version history.
</p>
</details>
<details>
<summary>Improve your editor auto-completion with <i>jsconfig</i> or <i>tscondig</i></summary>
<p>
Place a <i>jsconfig.json</i> (or <i>tsconfig.json</i> for TypeScript projects) in your project's root. Adding the configuration below helps your editor locate three.js files for enhanced auto-completion.
</p>
<code>
{
"compilerOptions": {
// other options...
"paths": {
"three/webgpu": ["node_modules/three/build/three.webgpu.js"],
"three/tsl": ["node_modules/three/build/three.tsl.js"],
},
}
}
</code>
</details>
</aside>
</li>
<li>
Expand Down

0 comments on commit 823833f

Please sign in to comment.