• function  

If a script simply exports its values on the global or window object, it uses the "global" syntax.


A global module might look like:

// app/sample-global.js
hello = "world";

Use meta to configure this module as the global format like:

    meta: {
        "app/sample-global": {
            format: "global"

Using meta you can also set a module's dependencies and what it exports. These configurations can also be set inline like:

// app/sample-global.js
"format global";
"exports hello";
hello = "world";
Help us improve StealJS by taking our community survey