source: trip-planner-front/node_modules/webpack/schemas/plugins/container/ModuleFederationPlugin.json@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 15.7 KB
Line 
1{
2 "definitions": {
3 "AuxiliaryComment": {
4 "description": "Add a comment in the UMD wrapper.",
5 "anyOf": [
6 {
7 "description": "Append the same comment above each import style.",
8 "type": "string"
9 },
10 {
11 "$ref": "#/definitions/LibraryCustomUmdCommentObject"
12 }
13 ]
14 },
15 "EntryRuntime": {
16 "description": "The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.",
17 "anyOf": [
18 {
19 "enum": [false]
20 },
21 {
22 "type": "string",
23 "minLength": 1
24 }
25 ]
26 },
27 "Exposes": {
28 "description": "Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.",
29 "anyOf": [
30 {
31 "type": "array",
32 "items": {
33 "description": "Modules that should be exposed by this container.",
34 "anyOf": [
35 {
36 "$ref": "#/definitions/ExposesItem"
37 },
38 {
39 "$ref": "#/definitions/ExposesObject"
40 }
41 ]
42 }
43 },
44 {
45 "$ref": "#/definitions/ExposesObject"
46 }
47 ]
48 },
49 "ExposesConfig": {
50 "description": "Advanced configuration for modules that should be exposed by this container.",
51 "type": "object",
52 "additionalProperties": false,
53 "properties": {
54 "import": {
55 "description": "Request to a module that should be exposed by this container.",
56 "anyOf": [
57 {
58 "$ref": "#/definitions/ExposesItem"
59 },
60 {
61 "$ref": "#/definitions/ExposesItems"
62 }
63 ]
64 },
65 "name": {
66 "description": "Custom chunk name for the exposed module.",
67 "type": "string"
68 }
69 },
70 "required": ["import"]
71 },
72 "ExposesItem": {
73 "description": "Module that should be exposed by this container.",
74 "type": "string",
75 "minLength": 1
76 },
77 "ExposesItems": {
78 "description": "Modules that should be exposed by this container.",
79 "type": "array",
80 "items": {
81 "$ref": "#/definitions/ExposesItem"
82 }
83 },
84 "ExposesObject": {
85 "description": "Modules that should be exposed by this container. Property names are used as public paths.",
86 "type": "object",
87 "additionalProperties": {
88 "description": "Modules that should be exposed by this container.",
89 "anyOf": [
90 {
91 "$ref": "#/definitions/ExposesConfig"
92 },
93 {
94 "$ref": "#/definitions/ExposesItem"
95 },
96 {
97 "$ref": "#/definitions/ExposesItems"
98 }
99 ]
100 }
101 },
102 "ExternalsType": {
103 "description": "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).",
104 "enum": [
105 "var",
106 "module",
107 "assign",
108 "this",
109 "window",
110 "self",
111 "global",
112 "commonjs",
113 "commonjs2",
114 "commonjs-module",
115 "amd",
116 "amd-require",
117 "umd",
118 "umd2",
119 "jsonp",
120 "system",
121 "promise",
122 "import",
123 "script",
124 "node-commonjs"
125 ]
126 },
127 "LibraryCustomUmdCommentObject": {
128 "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.",
129 "type": "object",
130 "additionalProperties": false,
131 "properties": {
132 "amd": {
133 "description": "Set comment for `amd` section in UMD.",
134 "type": "string"
135 },
136 "commonjs": {
137 "description": "Set comment for `commonjs` (exports) section in UMD.",
138 "type": "string"
139 },
140 "commonjs2": {
141 "description": "Set comment for `commonjs2` (module.exports) section in UMD.",
142 "type": "string"
143 },
144 "root": {
145 "description": "Set comment for `root` (global variable) section in UMD.",
146 "type": "string"
147 }
148 }
149 },
150 "LibraryCustomUmdObject": {
151 "description": "Description object for all UMD variants of the library name.",
152 "type": "object",
153 "additionalProperties": false,
154 "properties": {
155 "amd": {
156 "description": "Name of the exposed AMD library in the UMD.",
157 "type": "string",
158 "minLength": 1
159 },
160 "commonjs": {
161 "description": "Name of the exposed commonjs export in the UMD.",
162 "type": "string",
163 "minLength": 1
164 },
165 "root": {
166 "description": "Name of the property exposed globally by a UMD library.",
167 "anyOf": [
168 {
169 "type": "array",
170 "items": {
171 "description": "Part of the name of the property exposed globally by a UMD library.",
172 "type": "string",
173 "minLength": 1
174 }
175 },
176 {
177 "type": "string",
178 "minLength": 1
179 }
180 ]
181 }
182 }
183 },
184 "LibraryExport": {
185 "description": "Specify which export should be exposed as library.",
186 "anyOf": [
187 {
188 "type": "array",
189 "items": {
190 "description": "Part of the export that should be exposed as library.",
191 "type": "string",
192 "minLength": 1
193 }
194 },
195 {
196 "type": "string",
197 "minLength": 1
198 }
199 ]
200 },
201 "LibraryName": {
202 "description": "The name of the library (some types allow unnamed libraries too).",
203 "anyOf": [
204 {
205 "type": "array",
206 "items": {
207 "description": "A part of the library name.",
208 "type": "string",
209 "minLength": 1
210 },
211 "minItems": 1
212 },
213 {
214 "type": "string",
215 "minLength": 1
216 },
217 {
218 "$ref": "#/definitions/LibraryCustomUmdObject"
219 }
220 ]
221 },
222 "LibraryOptions": {
223 "description": "Options for library.",
224 "type": "object",
225 "additionalProperties": false,
226 "properties": {
227 "auxiliaryComment": {
228 "$ref": "#/definitions/AuxiliaryComment"
229 },
230 "export": {
231 "$ref": "#/definitions/LibraryExport"
232 },
233 "name": {
234 "$ref": "#/definitions/LibraryName"
235 },
236 "type": {
237 "$ref": "#/definitions/LibraryType"
238 },
239 "umdNamedDefine": {
240 "$ref": "#/definitions/UmdNamedDefine"
241 }
242 },
243 "required": ["type"]
244 },
245 "LibraryType": {
246 "description": "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).",
247 "anyOf": [
248 {
249 "enum": [
250 "var",
251 "module",
252 "assign",
253 "assign-properties",
254 "this",
255 "window",
256 "self",
257 "global",
258 "commonjs",
259 "commonjs2",
260 "commonjs-module",
261 "amd",
262 "amd-require",
263 "umd",
264 "umd2",
265 "jsonp",
266 "system"
267 ]
268 },
269 {
270 "type": "string"
271 }
272 ]
273 },
274 "Remotes": {
275 "description": "Container locations and request scopes from which modules should be resolved and loaded at runtime. When provided, property name is used as request scope, otherwise request scope is automatically inferred from container location.",
276 "anyOf": [
277 {
278 "type": "array",
279 "items": {
280 "description": "Container locations and request scopes from which modules should be resolved and loaded at runtime.",
281 "anyOf": [
282 {
283 "$ref": "#/definitions/RemotesItem"
284 },
285 {
286 "$ref": "#/definitions/RemotesObject"
287 }
288 ]
289 }
290 },
291 {
292 "$ref": "#/definitions/RemotesObject"
293 }
294 ]
295 },
296 "RemotesConfig": {
297 "description": "Advanced configuration for container locations from which modules should be resolved and loaded at runtime.",
298 "type": "object",
299 "additionalProperties": false,
300 "properties": {
301 "external": {
302 "description": "Container locations from which modules should be resolved and loaded at runtime.",
303 "anyOf": [
304 {
305 "$ref": "#/definitions/RemotesItem"
306 },
307 {
308 "$ref": "#/definitions/RemotesItems"
309 }
310 ]
311 },
312 "shareScope": {
313 "description": "The name of the share scope shared with this remote.",
314 "type": "string",
315 "minLength": 1
316 }
317 },
318 "required": ["external"]
319 },
320 "RemotesItem": {
321 "description": "Container location from which modules should be resolved and loaded at runtime.",
322 "type": "string",
323 "minLength": 1
324 },
325 "RemotesItems": {
326 "description": "Container locations from which modules should be resolved and loaded at runtime.",
327 "type": "array",
328 "items": {
329 "$ref": "#/definitions/RemotesItem"
330 }
331 },
332 "RemotesObject": {
333 "description": "Container locations from which modules should be resolved and loaded at runtime. Property names are used as request scopes.",
334 "type": "object",
335 "additionalProperties": {
336 "description": "Container locations from which modules should be resolved and loaded at runtime.",
337 "anyOf": [
338 {
339 "$ref": "#/definitions/RemotesConfig"
340 },
341 {
342 "$ref": "#/definitions/RemotesItem"
343 },
344 {
345 "$ref": "#/definitions/RemotesItems"
346 }
347 ]
348 }
349 },
350 "Shared": {
351 "description": "Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.",
352 "anyOf": [
353 {
354 "type": "array",
355 "items": {
356 "description": "Modules that should be shared in the share scope.",
357 "anyOf": [
358 {
359 "$ref": "#/definitions/SharedItem"
360 },
361 {
362 "$ref": "#/definitions/SharedObject"
363 }
364 ]
365 }
366 },
367 {
368 "$ref": "#/definitions/SharedObject"
369 }
370 ]
371 },
372 "SharedConfig": {
373 "description": "Advanced configuration for modules that should be shared in the share scope.",
374 "type": "object",
375 "additionalProperties": false,
376 "properties": {
377 "eager": {
378 "description": "Include the provided and fallback module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.",
379 "type": "boolean"
380 },
381 "import": {
382 "description": "Provided module that should be provided to share scope. Also acts as fallback module if no shared module is found in share scope or version isn't valid. Defaults to the property name.",
383 "anyOf": [
384 {
385 "description": "No provided or fallback module.",
386 "enum": [false]
387 },
388 {
389 "$ref": "#/definitions/SharedItem"
390 }
391 ]
392 },
393 "packageName": {
394 "description": "Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.",
395 "type": "string",
396 "minLength": 1
397 },
398 "requiredVersion": {
399 "description": "Version requirement from module in share scope.",
400 "anyOf": [
401 {
402 "description": "No version requirement check.",
403 "enum": [false]
404 },
405 {
406 "description": "Version as string. Can be prefixed with '^' or '~' for minimum matches. Each part of the version should be separated by a dot '.'.",
407 "type": "string"
408 }
409 ]
410 },
411 "shareKey": {
412 "description": "Module is looked up under this key from the share scope.",
413 "type": "string",
414 "minLength": 1
415 },
416 "shareScope": {
417 "description": "Share scope name.",
418 "type": "string",
419 "minLength": 1
420 },
421 "singleton": {
422 "description": "Allow only a single version of the shared module in share scope (disabled by default).",
423 "type": "boolean"
424 },
425 "strictVersion": {
426 "description": "Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).",
427 "type": "boolean"
428 },
429 "version": {
430 "description": "Version of the provided module. Will replace lower matching versions, but not higher.",
431 "anyOf": [
432 {
433 "description": "Don't provide a version.",
434 "enum": [false]
435 },
436 {
437 "description": "Version as string. Each part of the version should be separated by a dot '.'.",
438 "type": "string"
439 }
440 ]
441 }
442 }
443 },
444 "SharedItem": {
445 "description": "A module that should be shared in the share scope.",
446 "type": "string",
447 "minLength": 1
448 },
449 "SharedObject": {
450 "description": "Modules that should be shared in the share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.",
451 "type": "object",
452 "additionalProperties": {
453 "description": "Modules that should be shared in the share scope.",
454 "anyOf": [
455 {
456 "$ref": "#/definitions/SharedConfig"
457 },
458 {
459 "$ref": "#/definitions/SharedItem"
460 }
461 ]
462 }
463 },
464 "UmdNamedDefine": {
465 "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.",
466 "type": "boolean"
467 }
468 },
469 "title": "ModuleFederationPluginOptions",
470 "type": "object",
471 "additionalProperties": false,
472 "properties": {
473 "exposes": {
474 "$ref": "#/definitions/Exposes"
475 },
476 "filename": {
477 "description": "The filename of the container as relative path inside the `output.path` directory.",
478 "type": "string",
479 "absolutePath": false
480 },
481 "library": {
482 "$ref": "#/definitions/LibraryOptions"
483 },
484 "name": {
485 "description": "The name of the container.",
486 "type": "string"
487 },
488 "remoteType": {
489 "description": "The external type of the remote containers.",
490 "oneOf": [
491 {
492 "$ref": "#/definitions/ExternalsType"
493 }
494 ]
495 },
496 "remotes": {
497 "$ref": "#/definitions/Remotes"
498 },
499 "runtime": {
500 "$ref": "#/definitions/EntryRuntime"
501 },
502 "shareScope": {
503 "description": "Share scope name used for all shared modules (defaults to 'default').",
504 "type": "string",
505 "minLength": 1
506 },
507 "shared": {
508 "$ref": "#/definitions/Shared"
509 }
510 }
511}
Note: See TracBrowser for help on using the repository browser.