UNPKG

6.09 kBJSONView Raw
1{
2 "definitions": {
3 "DllReferencePluginOptionsContent": {
4 "description": "The mappings from request to module info.",
5 "type": "object",
6 "additionalProperties": {
7 "description": "Module info.",
8 "type": "object",
9 "additionalProperties": false,
10 "properties": {
11 "buildMeta": {
12 "description": "Meta information about the module.",
13 "type": "object"
14 },
15 "exports": {
16 "description": "Information about the provided exports of the module.",
17 "anyOf": [
18 {
19 "description": "List of provided exports of the module.",
20 "type": "array",
21 "items": {
22 "description": "Name of the export.",
23 "type": "string",
24 "minLength": 1
25 }
26 },
27 {
28 "description": "Exports unknown/dynamic.",
29 "enum": [true]
30 }
31 ]
32 },
33 "id": {
34 "description": "Module ID.",
35 "anyOf": [
36 {
37 "type": "number"
38 },
39 {
40 "type": "string",
41 "minLength": 1
42 }
43 ]
44 }
45 },
46 "required": ["id"]
47 },
48 "minProperties": 1
49 },
50 "DllReferencePluginOptionsManifest": {
51 "description": "An object containing content, name and type.",
52 "type": "object",
53 "additionalProperties": false,
54 "properties": {
55 "content": {
56 "description": "The mappings from request to module info.",
57 "oneOf": [
58 {
59 "$ref": "#/definitions/DllReferencePluginOptionsContent"
60 }
61 ]
62 },
63 "name": {
64 "description": "The name where the dll is exposed (external name).",
65 "type": "string",
66 "minLength": 1
67 },
68 "type": {
69 "description": "The type how the dll is exposed (external type).",
70 "oneOf": [
71 {
72 "$ref": "#/definitions/DllReferencePluginOptionsSourceType"
73 }
74 ]
75 }
76 },
77 "required": ["content"]
78 },
79 "DllReferencePluginOptionsSourceType": {
80 "description": "The type how the dll is exposed (external type).",
81 "enum": [
82 "var",
83 "assign",
84 "this",
85 "window",
86 "global",
87 "commonjs",
88 "commonjs2",
89 "commonjs-module",
90 "amd",
91 "amd-require",
92 "umd",
93 "umd2",
94 "jsonp",
95 "system"
96 ]
97 }
98 },
99 "title": "DllReferencePluginOptions",
100 "anyOf": [
101 {
102 "type": "object",
103 "additionalProperties": false,
104 "properties": {
105 "context": {
106 "description": "Context of requests in the manifest (or content property) as absolute path.",
107 "type": "string",
108 "absolutePath": true
109 },
110 "extensions": {
111 "description": "Extensions used to resolve modules in the dll bundle (only used when using 'scope').",
112 "type": "array",
113 "items": {
114 "description": "An extension.",
115 "type": "string"
116 }
117 },
118 "manifest": {
119 "description": "An object containing content and name or a string to the absolute path of the JSON manifest to be loaded upon compilation.",
120 "anyOf": [
121 {
122 "type": "string",
123 "absolutePath": true
124 },
125 {
126 "$ref": "#/definitions/DllReferencePluginOptionsManifest"
127 }
128 ]
129 },
130 "name": {
131 "description": "The name where the dll is exposed (external name, defaults to manifest.name).",
132 "type": "string",
133 "minLength": 1
134 },
135 "scope": {
136 "description": "Prefix which is used for accessing the content of the dll.",
137 "type": "string",
138 "minLength": 1
139 },
140 "sourceType": {
141 "description": "How the dll is exposed (libraryTarget, defaults to manifest.type).",
142 "oneOf": [
143 {
144 "$ref": "#/definitions/DllReferencePluginOptionsSourceType"
145 }
146 ]
147 },
148 "type": {
149 "description": "The way how the export of the dll bundle is used.",
150 "enum": ["require", "object"]
151 }
152 },
153 "required": ["manifest"]
154 },
155 {
156 "type": "object",
157 "additionalProperties": false,
158 "properties": {
159 "content": {
160 "description": "The mappings from request to module info.",
161 "oneOf": [
162 {
163 "$ref": "#/definitions/DllReferencePluginOptionsContent"
164 }
165 ]
166 },
167 "context": {
168 "description": "Context of requests in the manifest (or content property) as absolute path.",
169 "type": "string",
170 "absolutePath": true
171 },
172 "extensions": {
173 "description": "Extensions used to resolve modules in the dll bundle (only used when using 'scope').",
174 "type": "array",
175 "items": {
176 "description": "An extension.",
177 "type": "string"
178 }
179 },
180 "name": {
181 "description": "The name where the dll is exposed (external name).",
182 "type": "string",
183 "minLength": 1
184 },
185 "scope": {
186 "description": "Prefix which is used for accessing the content of the dll.",
187 "type": "string",
188 "minLength": 1
189 },
190 "sourceType": {
191 "description": "How the dll is exposed (libraryTarget).",
192 "oneOf": [
193 {
194 "$ref": "#/definitions/DllReferencePluginOptionsSourceType"
195 }
196 ]
197 },
198 "type": {
199 "description": "The way how the export of the dll bundle is used.",
200 "enum": ["require", "object"]
201 }
202 },
203 "required": ["content", "name"]
204 }
205 ]
206}