source: trip-planner-front/node_modules/webpack/schemas/plugins/sharing/ConsumeSharedPlugin.json@ e29cc2e

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

initial commit

  • Property mode set to 100644
File size: 4.3 KB
Line 
1{
2 "definitions": {
3 "Consumes": {
4 "description": "Modules that should be consumed from share scope. When provided, property names are used to match requested modules in this compilation.",
5 "anyOf": [
6 {
7 "type": "array",
8 "items": {
9 "description": "Modules that should be consumed from share scope.",
10 "anyOf": [
11 {
12 "$ref": "#/definitions/ConsumesItem"
13 },
14 {
15 "$ref": "#/definitions/ConsumesObject"
16 }
17 ]
18 }
19 },
20 {
21 "$ref": "#/definitions/ConsumesObject"
22 }
23 ]
24 },
25 "ConsumesConfig": {
26 "description": "Advanced configuration for modules that should be consumed from share scope.",
27 "type": "object",
28 "additionalProperties": false,
29 "properties": {
30 "eager": {
31 "description": "Include the fallback module directly instead behind an async request. This allows to use fallback module in initial load too. All possible shared modules need to be eager too.",
32 "type": "boolean"
33 },
34 "import": {
35 "description": "Fallback module if no shared module is found in share scope. Defaults to the property name.",
36 "anyOf": [
37 {
38 "description": "No fallback module.",
39 "enum": [false]
40 },
41 {
42 "$ref": "#/definitions/ConsumesItem"
43 }
44 ]
45 },
46 "packageName": {
47 "description": "Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.",
48 "type": "string",
49 "minLength": 1
50 },
51 "requiredVersion": {
52 "description": "Version requirement from module in share scope.",
53 "anyOf": [
54 {
55 "description": "No version requirement check.",
56 "enum": [false]
57 },
58 {
59 "description": "Version as string. Can be prefixed with '^' or '~' for minimum matches. Each part of the version should be separated by a dot '.'.",
60 "type": "string"
61 }
62 ]
63 },
64 "shareKey": {
65 "description": "Module is looked up under this key from the share scope.",
66 "type": "string",
67 "minLength": 1
68 },
69 "shareScope": {
70 "description": "Share scope name.",
71 "type": "string",
72 "minLength": 1
73 },
74 "singleton": {
75 "description": "Allow only a single version of the shared module in share scope (disabled by default).",
76 "type": "boolean"
77 },
78 "strictVersion": {
79 "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).",
80 "type": "boolean"
81 }
82 }
83 },
84 "ConsumesItem": {
85 "description": "A module that should be consumed from share scope.",
86 "type": "string",
87 "minLength": 1
88 },
89 "ConsumesObject": {
90 "description": "Modules that should be consumed from 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.",
91 "type": "object",
92 "additionalProperties": {
93 "description": "Modules that should be consumed from share scope.",
94 "anyOf": [
95 {
96 "$ref": "#/definitions/ConsumesConfig"
97 },
98 {
99 "$ref": "#/definitions/ConsumesItem"
100 }
101 ]
102 }
103 }
104 },
105 "title": "ConsumeSharedPluginOptions",
106 "description": "Options for consuming shared modules.",
107 "type": "object",
108 "additionalProperties": false,
109 "properties": {
110 "consumes": {
111 "$ref": "#/definitions/Consumes"
112 },
113 "shareScope": {
114 "description": "Share scope name used for all consumed modules (defaults to 'default').",
115 "type": "string",
116 "minLength": 1
117 }
118 },
119 "required": ["consumes"]
120}
Note: See TracBrowser for help on using the repository browser.