Skip to content

Commit 4d4e364

Browse files
committed
Mention importing specific packages in README
1 parent a247e57 commit 4d4e364

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,13 @@ npm install --save aframe-extras
7171

7272
```javascript
7373
// index.js
74-
require('aframe-extras');
74+
import 'aframe-extras';
75+
// or specific packages
76+
import "aframe-extras/controls/index.js";
77+
import "aframe-extras/pathfinding/index.js";
7578
```
7679

77-
Once installed, you'll need to compile your JavaScript using something like [webpack](https://webpack.js.org).
80+
Once installed, you'll need to compile your JavaScript using something like [webpack](https://webpack.js.org) with three defined as external, see webpack.config.js in this repo for an example.
7881

7982
## Examples
8083

0 commit comments

Comments
 (0)