meta

  • property
config.meta {Object<moduleName,metadata>}  

Specify properties on the metadata object.

Object<moduleName,metadata>

An object of module names that point to metadata values.

Use

Meta configuration is used to provide additional information about a module. It is most often used as a type of shim configuration for globals. This page specifies the types of metadata that can be added.

For a global most likely you will want configuration that looks like:

"steal": {
    "meta": {
        "jquerty": {
            "format": "global",
            "exports": "jQuerty"
        }
    }
}

This specifies that the module jquerty uses the global format and exports the value of window.jQuerty.

Help us improve StealJS by taking our community survey