Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit e89815b

Browse files
committed
document bulk export form
1 parent 81d0471 commit e89815b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/system-register.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ Then we separately run all the execution functions left to right from the bottom
7676
In this way we get the live binding and circular reference support exactly as expected by the spec,
7777
while supporting ES3 environments for the module syntax conversion.
7878

79+
#### Bulk exports
80+
81+
The `$__export` function above can also be used to export multiple exports at the same time:
82+
83+
```javascript
84+
$__export({ key: 'value', another: 'value' });
85+
```
86+
87+
This is useful for performance of deep re-exports where unnecessary setter operations can be avoided.
88+
7989
#### Metadata
8090

8191
The next iteration of this format will include support for ES6 module meta information through a new

0 commit comments

Comments
 (0)