Skip to content

Commit

Permalink
Reword FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcos authored Jan 28, 2025
1 parent 92617bc commit 6ec33cc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions docs/introduction/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,10 @@ await import('aframe');
window.AFRAME.ready();
```

Since A-Frame 1.7.0, we provide an ES module bundle without three dependency.
This allows you to import from three and three/addons without having the
"Multiple instances of Three.js being imported." warning.
To use it you need to explicitly add the super-three dependency in the importmap.
If you update A-Frame later, be sure to also update the super-three version that matches the A-Frame version, simply by reading again that documentation.

Here is an example of the importmap to use:
Since version 1.7.0, A-Frame ships an ES module bundle without the three dependency.
Developers can import from `three` and `three/addons` and avoid the
"Multiple instances of Three.js being imported." warning. Add the three dependency in the importmap like the example below.
Make sure the three and A-Frame versions are compatible. See browser console (or package.json) to see what THREE version A-Frame ships with by default.

```HTML
<head>
Expand Down

0 comments on commit 6ec33cc

Please sign in to comment.