1 | {
|
2 | "title": "Exports Loader options",
|
3 | "definitions": {
|
4 | "ExportItemString": {
|
5 | "type": "string",
|
6 | "minLength": 1
|
7 | },
|
8 | "ExportItemObject": {
|
9 | "type": "object",
|
10 | "additionalProperties": false,
|
11 | "properties": {
|
12 | "syntax": {
|
13 | "enum": ["default", "named", "single", "multiple"]
|
14 | },
|
15 | "name": {
|
16 | "type": "string",
|
17 | "minLength": 1
|
18 | },
|
19 | "alias": {
|
20 | "type": "string",
|
21 | "minLength": 1
|
22 | }
|
23 | },
|
24 | "required": ["name"]
|
25 | },
|
26 | "ExportItem": {
|
27 | "anyOf": [
|
28 | {
|
29 | "$ref": "#/definitions/ExportItemString"
|
30 | },
|
31 | {
|
32 | "$ref": "#/definitions/ExportItemObject"
|
33 | }
|
34 | ]
|
35 | }
|
36 | },
|
37 | "type": "object",
|
38 | "additionalProperties": false,
|
39 | "properties": {
|
40 | "type": {
|
41 | "enum": ["commonjs", "module"],
|
42 | "description": "Format of generated exports.",
|
43 | "link": "https://github.com/webpack-contrib/exports-loader#type"
|
44 | },
|
45 | "exports": {
|
46 | "anyOf": [
|
47 | {
|
48 | "type": "string",
|
49 | "minLength": 1
|
50 | },
|
51 | {
|
52 | "$ref": "#/definitions/ExportItem"
|
53 | },
|
54 | {
|
55 | "type": "array",
|
56 | "items": {
|
57 | "$ref": "#/definitions/ExportItem"
|
58 | },
|
59 | "minItems": 1
|
60 | }
|
61 | ],
|
62 | "description": "List of exports.",
|
63 | "link": "https://github.com/webpack-contrib/exports-loader#exports"
|
64 | }
|
65 | },
|
66 | "required": ["exports"]
|
67 | }
|