You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/builtins.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,13 +58,13 @@ For time manipulation in VibeScript, use the `Time` object (`Time.now`, `Time.pa
58
58
59
59
## Module Loading
60
60
61
-
### `require(module_name)`
61
+
### `require(module_name, as: alias?)`
62
62
63
-
Loads a module from configured module search paths and returns an object containing the module's exported functions:
63
+
Loads a module from configured module search paths and returns an object containing the module's exported functions. Modules can mark exports explicitly with `export def ...`; when no explicit exports are declared, public (non-underscore) functions are exported by default. Exported functions are injected into globals only when the name is still free (existing globals keep precedence), and `as:` can be used to bind the module object explicitly:
0 commit comments