mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-14 14:30:34 -04:00
docs(extensions): added linking and fixed module export
This commit is contained in:
parent
9607e00636
commit
f24f284eb1
1 changed files with 8 additions and 0 deletions
|
@ -524,4 +524,12 @@ class SomeBlocks {
|
|||
});
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = SomeBlocks;
|
||||
```
|
||||
|
||||
## Linking a extension
|
||||
To enable your custom written extension we need to add it to the extension-manager (src/extension-support/extension-manager.js) in the builtinExtensions list
|
||||
```
|
||||
someBlocks: () => require('.../extensions/someBlocks');
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue