source: trip-planner-front/node_modules/webpack/schemas/plugins/sharing/SharePlugin.json@ 8d391a1

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

initial commit

  • Property mode set to 100644
File size: 4.8 KB
Line 
1{
2 "definitions": {
3 "Shared": {
4 "description": "Modules that should be shared in the 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 shared in the share scope.",
10 "anyOf": [
11 {
12 "$ref": "#/definitions/SharedItem"
13 },
14 {
15 "$ref": "#/definitions/SharedObject"
16 }
17 ]
18 }
19 },
20 {
21 "$ref": "#/definitions/SharedObject"
22 }
23 ]
24 },
25 "SharedConfig": {
26 "description": "Advanced configuration for modules that should be shared in the share scope.",
27 "type": "object",
28 "additionalProperties": false,
29 "properties": {
30 "eager": {
31 "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.",
32 "type": "boolean"
33 },
34 "import": {
35 "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.",
36 "anyOf": [
37 {
38 "description": "No provided or fallback module.",
39 "enum": [false]
40 },
41 {
42 "$ref": "#/definitions/SharedItem"
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 "version": {
83 "description": "Version of the provided module. Will replace lower matching versions, but not higher.",
84 "anyOf": [
85 {
86 "description": "Don't provide a version.",
87 "enum": [false]
88 },
89 {
90 "description": "Version as string. Each part of the version should be separated by a dot '.'.",
91 "type": "string"
92 }
93 ]
94 }
95 }
96 },
97 "SharedItem": {
98 "description": "A module that should be shared in the share scope.",
99 "type": "string",
100 "minLength": 1
101 },
102 "SharedObject": {
103 "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.",
104 "type": "object",
105 "additionalProperties": {
106 "description": "Modules that should be shared in the share scope.",
107 "anyOf": [
108 {
109 "$ref": "#/definitions/SharedConfig"
110 },
111 {
112 "$ref": "#/definitions/SharedItem"
113 }
114 ]
115 }
116 }
117 },
118 "title": "SharePluginOptions",
119 "description": "Options for shared modules.",
120 "type": "object",
121 "additionalProperties": false,
122 "properties": {
123 "shareScope": {
124 "description": "Share scope name used for all shared modules (defaults to 'default').",
125 "type": "string",
126 "minLength": 1
127 },
128 "shared": {
129 "$ref": "#/definitions/Shared"
130 }
131 },
132 "required": ["shared"]
133}
Note: See TracBrowser for help on using the repository browser.