expose-loader
Version:
expose loader module for webpack
79 lines (78 loc) • 2.14 kB
JSON
{
"title": "Expose Loader options",
"definitions": {
"ObjectPattern": {
"type": "object",
"additionalProperties": false,
"properties": {
"globalName": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 1
}
],
"description": "The name in the global object.",
"link": "https://github.com/webpack-contrib/expose-loader#globalname"
},
"moduleLocalName": {
"type": "string",
"description": "he name of method/variable/etc of the module (the module must export it).",
"link:": "https://github.com/webpack-contrib/expose-loader#modulelocalname",
"minLength": 1
},
"override": {
"type": "boolean",
"description": "Configure loader to override the existing value in the global object.",
"link": "https://github.com/webpack-contrib/expose-loader#override"
}
},
"required": ["globalName"]
}
},
"type": "object",
"properties": {
"globalObject": {
"type": "string",
"description": "Global object used as global context",
"link": "https://github.com/webpack-contrib/expose-loader#globalObject"
},
"exposes": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"$ref": "#/definitions/ObjectPattern"
},
{
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"$ref": "#/definitions/ObjectPattern"
}
]
},
"minItems": 1
}
],
"description": "List of exposes.",
"link": "https://github.com/webpack-contrib/expose-loader#exposes"
}
},
"anyOf": [{ "required": ["exposes"] }]
}